Changes between Version 5 and Version 6 of WorkingConventions/GitSPJ


Ignore:
Timestamp:
Apr 30, 2011 12:52:15 AM (3 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkingConventions/GitSPJ

    v5 v6  
    5555This creates the new branch and switches to it, but '''does not change your working files'''.  Now you can safely commit on the branch. [http://stackoverflow.com/questions/2569459/git-create-a-branch-from-unstagged-uncommited-changes-on-master Stackoverflow link] 
    5656 
     57=== Work on a branch gotten from the main repo === 
     58 
     59You have done a `git fetch` to get the upstream repo, which has a branch `origin/experiment`.  You want a local `experiment` branch which tracks `origin/experiment`: 
     60{{{ 
     61git branch --track experiment origin/experiment 
     62}}} 
     63Now you can `git checkout experiment` to move onto your local `experiment` branch. 
     64 
    5765--------------- 
    5866