mirror of
https://github.com/git-tips/tips
synced 2024-11-10 05:44:14 +00:00
Merge pull request #190 from AdrianSkar/patch-1
add[alternative]: create and switch branch
This commit is contained in:
commit
6ed1ec9dfa
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@
|
||||||
}, {
|
}, {
|
||||||
"title": "Create and switch new branch",
|
"title": "Create and switch new branch",
|
||||||
"tip": "git checkout -b <branch-name>",
|
"tip": "git checkout -b <branch-name>",
|
||||||
"alternatives": ["git branch <branch-name> && git checkout <branch-name>"]
|
"alternatives": ["git branch <branch-name> && git checkout <branch-name>", "git switch -c <branch-name>"]
|
||||||
}, {
|
}, {
|
||||||
"title": "Ignore file mode changes on commits",
|
"title": "Ignore file mode changes on commits",
|
||||||
"tip": "git config core.fileMode false"
|
"tip": "git config core.fileMode false"
|
||||||
|
|
Loading…
Reference in a new issue