Added branching info
This commit is contained in:
parent
b99624b27f
commit
de76050ad2
16
README.md
16
README.md
@ -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>
|
||||||
|
Reference in New Issue
Block a user