Bureaucrats, confirmed, Administrators
4,558
edits
(a few branch command examples) |
m (close </code>) |
||
Line 26: | Line 26: | ||
* list the branches you have locally <code>git branch --list</code> | * list the branches you have locally <code>git branch --list</code> | ||
* list the branches that are on remotes <code>git branch -r --list</code> | * list the branches that are on remotes <code>git branch -r --list</code> | ||
* checkout a remote branch, setting the local one to track <code>git checkout -t freephile/patch-1 | * checkout a remote branch, setting the local one to track <code>git checkout -t freephile/patch-1</code> | ||