✨ Add git fixup alias
This commit is contained in:
parent
7ab0964083
commit
13138e6620
1 changed files with 94 additions and 94 deletions
|
@ -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 "gcan!" --position command "git commit -a --no-edit --amend"
|
||||||
abbr -a gcam --position command "git commit -a -m"
|
abbr -a gcam --position command "git commit -a -m"
|
||||||
abbr -a gcmsg --position command "git commit -m"
|
abbr -a gcmsg --position command "git commit -m"
|
||||||
|
abbr -a gcfu --position command "git commit --fixup"
|
||||||
|
|
||||||
abbr -a grev --position command "git revert"
|
abbr -a grev --position command "git revert"
|
||||||
|
|
||||||
|
@ -162,8 +163,7 @@ function gwip
|
||||||
end
|
end
|
||||||
|
|
||||||
function gunwip
|
function gunwip
|
||||||
git rev-list --max-count=1 --format="%s" HEAD | \
|
git rev-list --max-count=1 --format="%s" HEAD | grep -q "🚧 --wip--" \
|
||||||
grep -q "🚧 --wip--" \
|
|
||||||
&& git reset HEAD~1
|
&& git reset HEAD~1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue