Please, find below some information and instructions.
- Install Git
- Get a local copy of the GATE public code repository
git clone https://github.com/OpenGATE/Gate.git
- Consider both 'master' and 'develop' remote branches
The GATE public remote repository holds two remote branches named 'master' and 'develop'.
The remote 'master' branch is the main branch where the source code reflects a production-ready state (i.e. corresponding to the current GATE version V6.2). The remote 'develop' branch is the branch where the source code reflects a state with the latest delivered development changes for the next release.
Important note : the use of the code contained in 'develop' branch is at your own risk and discretion. No service support will be provided by the OpenGATE collaboration.
git cloneautomatically creates a local 'master' branch in your local repository that tracks the remote one.
To track the remote 'develop' branch, just type:
git checkout -b develop origin/develop. Then, to switch from one to another branch, use
git checkout masteror
git checkout develop.
- Regularly update your repository
To update your repository, just type
git pullin your local repository, it will download last developments.
- If you plan to make some personal developments, we highly recommend you to create a new branch, starting from the 'develop' one. You will then be able to regularly merge the 'develop' branch into your branch to keep it up to date.
Here are some useful commands:
git checkout develop# to switch to branch 'develop'
git branch mybranch# to create a new branch named 'mybranch'
git checkout mybranch# to switch to the new branch
(do some stuff; you can commit in your branch)
git merge develop
' # to update your branch with the new commits made in 'develop'