more git config

main
hau 2020-11-27 11:00:02 +07:00
parent a1ac1d9dc5
commit 1308c301a3
1 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,24 @@ Use nice editor when commit:
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
Prefer rebase when pull: