git:alias: Add autofixup and autosquash
Automatically fixup/squash marked commits without opening the git-rebase-todo.
This commit is contained in:
@@ -2,6 +2,11 @@
|
|||||||
addIgnoredFile = off
|
addIgnoredFile = off
|
||||||
detachedHead = off
|
detachedHead = off
|
||||||
[alias]
|
[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
|
branches = track
|
||||||
checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\""
|
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\""
|
filter-repo = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/git/git-filter-repo/git-filter-repo\""
|
||||||
|
|||||||
Reference in New Issue
Block a user