Starting a page with useful Git commands

Ralf Becker 2016-06-11 11:05:13 +02:00
parent 9aa439606a
commit ee97892a09

16
Useful-Git-commands.md Normal file

@ -0,0 +1,16 @@
### Branches
* list all branches (incl. remotes)
> `git branch -a`
>
> * master
>
> remotes/origin/14.2
* switch to a branch you never checked out before, eg. above 14.2, and set up tracking
> `git branch --track <branch> origin/<branch>`
* switch to branch existing on your local repo
> `git checkout <branch>`