Difference between revisions of "Guide to Using Git"

From GlueXWiki
Jump to: navigation, search
(If you are starting from scratch:)
(If you are starting from scratch:)
Line 2: Line 2:
 
# Create local repository in the current directory
 
# Create local repository in the current directory
 
#* <code>git clone https://github.com/jeffersonlab/sim-recon</code>
 
#* <code>git clone https://github.com/jeffersonlab/sim-recon</code>
 +
#* Reference: http://git-scm.com/docs/git-clone
 
# Create a local branch
 
# Create a local branch
 
#* <code>cd sim-recon</code>
 
#* <code>cd sim-recon</code>

Revision as of 15:58, 29 July 2015

If you are starting from scratch:

  1. Create local repository in the current directory
  2. Create a local branch
    • cd sim-recon
    • git branch my_work
  3. Check-out the new branch
    • git checkout my_work