Translations:Source code management/7/en

2nd Method: Clone Official FreeCAD git repo to your local machine
This method of setuping your git environment takes a few more steps then the 1st method. You will clone the FC git repo directly to your local machine and then alter your remotes via the terminal. The procedure is as follows:  Clone the FreeCAD code with git: git clone https://github.com/FreeCAD/FreeCAD.git  Create an account on a public git server (GitHub, GitLab, etc... for our purposes we're assuming it's GitHub) Find out what and where your remote git repositories are set to: git remote -v  This will return something that looks like the following: [foo@bar FreeCAD]$ git remote -v origin https://github.com/FreeCAD/FreeCAD.git (fetch) origin https://github.com/FreeCAD/FreeCAD.git (push)  As was explained above in "A note about Remotes" you need to modify these remote git repo addresses.

So first set up your origin remote: [foo@bar FreeCAD]$ git remote add origin https://github.com/GITHUB_USERNAME/FreeCAD.git  Then we set up our upstream remote: [foo@bar FreeCAD]$ git remote add upstream https://github.com/FreeCAD/FreeCAD.git  Check your remotes again, they should look similiar to this: [foo@bar FreeCAD]$ git remote -v origin	https://github.com/GITHUB_USERNAME/FreeCAD.git (fetch) origin	https://github.com/GITHUB_USERNAME/FreeCAD.git (push) upstream	https://github.com/FreeCAD/FreeCAD.git (fetch) upstream	https://github.com/FreeCAD/FreeCAD.git (push)  Now we can start developing. Please refer to "Git Development Process"</li> </ol>