Archived
Added branching info
This commit is contained in:
1 parent
b99624b27f
commit
de76050ad2
1 file changed
+16
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user