mirror of
https://github.com/Fechin/reference.git
synced 2026-11-27 16:09:05 +03:00
Merge pull request #785 from harsh6125/docs/add-git-switch
docs: add git switch commands to Git cheatsheet
This commit is contained in:
1 file changed
+2
-2
@@ -153,13 +153,13 @@ $ git branch -av
|
||||
Switch to my_branch, and update working directory
|
||||
|
||||
```shell script
|
||||
$ git checkout my_branch
|
||||
$ git switch my_branch
|
||||
```
|
||||
|
||||
Create a new branch called new_branch
|
||||
|
||||
```shell script
|
||||
$ git checkout -b new_branch
|
||||
$ git switch -c new_branch
|
||||
```
|
||||
|
||||
Delete the branch called my_branch
|
||||
|
||||
Reference in new issue
Block a user