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:
parent
1c07f20d21
commit
0558db872b
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user