Essential git branching
List (all) branches
$ git branch -a * master origin/foo origin/bar
Change to a existing remote branch
Make the branch locally available:
$ git branch --track foo origin/foo Branch foo set up to track remote branch foo from origin.
Move to local branch ‘foo’:
$ git checkout foo Switched to branch 'foo' Your branch is up-to-date with 'origin/foo.
[ show comments ]
blog comments powered by Disqus