mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 05:24:10 +03:00
docs: add git switch commands
This commit is contained in:
1 parent
1a758e10f4
commit
be5a0a3626
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