Archived
1
0
Fork 0

gitconfig: Add rebase.autoSquash option and fixup command

Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
Christoph Heiss 2022-12-08 14:08:26 +01:00
parent adada56f1f
commit 2a956a51cc
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF

View file

@ -17,5 +17,7 @@
defaultBranch = main
[rebase]
autoStash = true
autoSquash = true
[alias]
fixes = show -s --pretty='format:Fixes: %h (\"%s\")'
fixup = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"