mirror of
https://github.com/git-tips/tips
synced 2024-11-10 05:44:14 +00:00
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:
parent
36c15874fd
commit
8305c4a4c6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue