🔧 git config tweaks
via https://blog.gitbutler.com/how-git-core-devs-configure-git/
This commit is contained in:
@ -5,12 +5,22 @@
|
||||
smu = "submodule update --init --recursive"
|
||||
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
|
||||
up = "pull --rebase --autostash"
|
||||
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
|
||||
|
||||
cleanup = "!git branch -vv|grep ': gone]'|awk '{print $1}'|xargs git branch -D"
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[diff]
|
||||
algorithm = histogram
|
||||
colorMoved = plain
|
||||
mnemonicPrefix = true
|
||||
renames = true
|
||||
|
||||
[fetch]
|
||||
prune = true
|
||||
pruneTags = true
|
||||
all = true
|
||||
|
||||
[github]
|
||||
user = "walkah"
|
||||
|
||||
@ -26,6 +36,11 @@
|
||||
[pull]
|
||||
rebase = true
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
autoSetupRemote = true
|
||||
followTags = true
|
||||
|
||||
[rebase]
|
||||
autoStash = true
|
||||
|
||||
|
Reference in New Issue
Block a user