1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-22 18:18:58 +00:00

Adds alternatives to create and switch branch

This commit is contained in:
S N Munendra 2016-06-13 23:00:07 +05:30
parent 1c07f20d21
commit 0558db872b
2 changed files with 8 additions and 1 deletions

View File

@ -746,6 +746,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

@ -327,7 +327,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"