Difference between revisions of "Guide to Using Git"
From GlueXWiki
(Created page with "== If you are starting from scratch: == * Create local repository in the current directory: <code>git clone https://github.com/jeffersonlab/sim-recon</code>") |
(→If you are starting from scratch:) |
||
Line 1: | Line 1: | ||
== If you are starting from scratch: == | == If you are starting from scratch: == | ||
− | + | # 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> |
+ | # Create a local branch | ||
+ | #* <code>cd sim-recon</code> | ||
+ | #* <code>git branch my_work</code> | ||
+ | # Check-out the new branch | ||
+ | #* <code>git checkout my_work</code> |
Revision as of 15:53, 29 July 2015
If you are starting from scratch:
- Create local repository in the current directory
- Create a local branch
-
cd sim-recon
-
git branch my_work
-
- Check-out the new branch
-
git checkout my_work
-