Difference between revisions of "Guide to Using Git"
From GlueXWiki
(→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:
- Create local repository in the current directory
-
git clone https://github.com/jeffersonlab/sim-recon
- Reference: http://git-scm.com/docs/git-clone
-
- Create a local branch
-
cd sim-recon
-
git branch my_work
-
- Check-out the new branch
-
git checkout my_work
-