🔧 git config tweaks

via https://blog.gitbutler.com/how-git-core-devs-configure-git/
This commit is contained in:
2025-03-24 19:05:03 -07:00
parent 55c50243e1
commit 58323fbb9d
2 changed files with 26 additions and 11 deletions

View File

@ -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