Skip to content

Commit 8305c4a

Browse files
authored
alternatives: create and switch new branch
Add alternative to `996 ## Create and switch new branch` using git switch ref: https://git-scm.com/docs/git-switch
1 parent 36c1587 commit 8305c4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,10 @@ __Alternatives:__
974974
git branch <branch-name> && git checkout <branch-name>
975975
```
976976

977+
```sh
978+
git switch -c <branch-name>
979+
```
980+
977981
## Ignore file mode changes on commits
978982
```sh
979983
git config core.fileMode false

0 commit comments

Comments
 (0)