Merge pull request #85 from munendrasn/master

Adds alternatives to create and switch branch
This commit is contained in:
hemanth.hm 2016-06-14 09:39:24 +05:30 committed by GitHub
commit ace3526a7f
2 changed files with 8 additions and 1 deletions

View File

@ -752,6 +752,12 @@ git clone -b <branch-name> --single-branch https://github.com/user/repo.git
git checkout -b <branch-name>
```
__Alternatives:__
```sh
git branch <branch-name> && git checkout <branch-name>
```
## Ignore file mode changes on commits
```sh
git config core.fileMode false

View File

@ -328,7 +328,8 @@
"tip": "git clone -b <branch-name> --single-branch https://github.com/user/repo.git"
},{
"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>"]
},{
"title": "Ignore file mode changes on commits",
"tip": "git config core.fileMode false"