✨ 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 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"
|
||||
|
||||
|
@ -157,13 +158,12 @@ abbr -a gstas --position command "git stash show --text"
|
|||
|
||||
function gwip
|
||||
git add -A
|
||||
git rm (git ls-files --deleted) 2> /dev/null
|
||||
git rm (git ls-files --deleted) 2>/dev/null
|
||||
git commit --no-verify --no-gpg-sign --message "🚧 --wip-- [skip ci]"
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue