Added branching info

This commit is contained in:
Bastian 2020-01-09 13:12:45 +01:00
parent b99624b27f
commit de76050ad2
1 changed files with 16 additions and 0 deletions

View File

@ -126,6 +126,22 @@ unstage by using
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
```shell
git checkout --track origin/<branch>