Add git fixup alias

This commit is contained in:
Marley Rae 2024-02-03 11:15:22 -08:00
parent 7ab0964083
commit 13138e6620

View file

@ -97,6 +97,7 @@ abbr -a "gca!" --position command "git commit -a --amend"
abbr -a "gcan!" --position command "git commit -a --no-edit --amend"
abbr -a gcam --position command "git commit -a -m"
abbr -a gcmsg --position command "git commit -m"
abbr -a gcfu --position command "git commit --fixup"
abbr -a grev --position command "git revert"
@ -162,8 +163,7 @@ function gwip
end
function gunwip
git rev-list --max-count=1 --format="%s" HEAD | \
grep -q "🚧 --wip--" \
git rev-list --max-count=1 --format="%s" HEAD | grep -q "🚧 --wip--" \
&& git reset HEAD~1
end