useful git snippets


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.