docs: add git switch commands

This commit is contained in:
harsh6125 committed 2026-08-09 23:03:08 +05:30
1 parent 1a758e10f4
commit be5a0a3626
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