From 2a956a51cc24de58ecdb19213bbe22fa4861e008 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Thu, 8 Dec 2022 14:08:26 +0100 Subject: [PATCH] gitconfig: Add `rebase.autoSquash` option and `fixup` command Signed-off-by: Christoph Heiss --- gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitconfig b/gitconfig index 117d052..485feeb 100644 --- a/gitconfig +++ b/gitconfig @@ -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"