Posted By

MikeyLikesIt on 09/21/10


Tagged


Versions (?)

useful git snippets


 / Published in: Bash
 

  1. # use git branch -r to see the names of the remote branches
  2. git branch -r
  3.  
  4. # set up a local branch which tracks a remote branch.
  5. git branch --track BRANCHNAME origin/REMOTEBRANCHNAME
  6.  
  7. # checkout the branch to update the codebase
  8. git checkout BRANCHNAME

Report this snippet  

You need to login to post a comment.