Added branching info

This commit is contained in:
Bastian 2020-01-09 13:12:45 +01:00
parent b99624b27f
commit de76050ad2

View File

@ -126,6 +126,22 @@ unstage by using
use "git reset HEAD <file>..." to unstage use "git reset HEAD <file>..." to unstage
``` ```
Creating a new branch
```shell
git branch <branchname>
git checkout -b <branchname>
```
Going to different branch
```shell
git checkout <branchname>
```
Seeing available branches
```shell
git branch -a
```
Track remote branch Track remote branch
```shell ```shell
git checkout --track origin/<branch> git checkout --track origin/<branch>