git:alias: Add autofixup and autosquash

Automatically fixup/squash marked commits without opening the
git-rebase-todo.
This commit is contained in:
2022-04-23 16:16:54 +02:00
parent f76d16f01b
commit 1149424d0d

View File

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