Guide to Using Git
From GlueXWiki
If you are starting from scratch:
- First you need to create a clone of the master repository on your local machine. The below commands pull all of the code, branches, etc. for the entire history of the project into the current, local directory.
- sim-recon:
-
cd $GLUEX_TOP/sim-recon/
-
git clone https://github.com/jeffersonlab/sim-recon
-
- sim-recon:
- hdds:
git clone https://github.com/jeffersonlab/hdds
- Guide: https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository
- Reference: http://git-scm.com/docs/git-clone
- hdds:
- Create a local branch
-
cd sim-recon
-
git branch my_work
-
- Check-out the new branch
-
git checkout my_work
-