Guide to Using Git

From GlueXWiki
Revision as of 16:06, 29 July 2015 by Pmatt (Talk | contribs) (If you are starting from scratch:)

Jump to: navigation, search

If you are starting from scratch:

  1. 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

  1. Create a local branch
    • cd sim-recon
    • git branch my_work
  2. Check-out the new branch
    • git checkout my_work