mirror of
https://github.com/namibia/tips.git
synced 2024-12-22 18:18:58 +00:00
Merge pull request #85 from munendrasn/master
Adds alternatives to create and switch branch
This commit is contained in:
commit
ace3526a7f
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user