more git config
parent
a1ac1d9dc5
commit
1308c301a3
|
@ -19,6 +19,24 @@ Use nice editor when commit:
|
||||||
git config --global core.editor <editor>
|
git config --global core.editor <editor>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Always pull rebase:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git config --global pull.rebase true
|
||||||
|
```
|
||||||
|
|
||||||
|
Set default branch to `main`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git config --global init.defaultBranch main
|
||||||
|
```
|
||||||
|
|
||||||
|
Always fetch/pull prune:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git config --global fetch.prune true
|
||||||
|
```
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
Prefer rebase when pull:
|
Prefer rebase when pull:
|
||||||
|
|
Loading…
Reference in New Issue