Merge pull request #785 from harsh6125/docs/add-git-switch

docs: add git switch commands to Git cheatsheet
This commit is contained in:
Fechin authored and GitHub committed 2026-10-03 11:28:35 +08:00
commit 5be889b8b5
1 file changed
+2 -2
+2 -2
View File
@@ -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