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
This commit is contained in:
Adrian Skar 2020-07-16 17:41:10 +02:00 committed by GitHub
parent 36c15874fd
commit 8305c4a4c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -974,6 +974,10 @@ __Alternatives:__
git branch <branch-name> && git checkout <branch-name> git branch <branch-name> && git checkout <branch-name>
``` ```
```sh
git switch -c <branch-name>
```
## Ignore file mode changes on commits ## Ignore file mode changes on commits
```sh ```sh
git config core.fileMode false git config core.fileMode false