Fork the project to your GitHub account and clone the repository:
git clone git@github.com:dnsmichi/icinga2.git
cd icinga2
Add a new remote upstream with this repository as value.
git remote add upstream https://github.com/icinga/icinga2.git
You can pull updates to your fork’s master branch:
git fetch --all
git pull upstream HEAD
Please continue to learn about branches.