From 1149424d0d26f23e84be8313f73502c1b28b822a Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 23 Apr 2022 16:16:54 +0200 Subject: [PATCH] git:alias: Add `autofixup` and `autosquash` Automatically fixup/squash marked commits without opening the git-rebase-todo. --- .config/git/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/git/config b/.config/git/config index 26131dd..360c9a9 100644 --- a/.config/git/config +++ b/.config/git/config @@ -2,6 +2,11 @@ addIgnoredFile = off detachedHead = off [alias] + # Automatically fixup/squash marked commits without opening the + # git-rebase-todo + autofixup = -c sequence.editor=/bin/true rebase -i --autosquash + autosquash = autofixup + branches = track checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\"" filter-repo = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/git/git-filter-repo/git-filter-repo\""