From 5f431e6c6f95c170bff991e124b6165e5a1ba9d5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 22 Mar 2018 13:38:24 +0000 Subject: .gitconfig: add alias.fixup --- %HOME%/.gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/%HOME%/.gitconfig b/%HOME%/.gitconfig index 720cf1d..0758758 100644 --- a/%HOME%/.gitconfig +++ b/%HOME%/.gitconfig @@ -27,6 +27,8 @@ hide = update-index --skip-worktree unhide = update-index --no-skip-worktree hidden = !git ls-files -v | grep --basic-regexp \"^\\([[:lower:]]\\|S\\)\" + + fixup = !git commit -a --fixup=HEAD && GIT_EDITOR=true git rebase -i --autosquash HEAD~2 [fetch] prune = true [log] -- cgit v1.2.3