diff --git a/pkg/alias.zsh b/pkg/alias.zsh index 8cb347e..9b06473 100644 --- a/pkg/alias.zsh +++ b/pkg/alias.zsh @@ -15,8 +15,13 @@ alias gcotb='git checkout --track -b' alias glog='git log' alias glogp='git log --pretty=format:"%h %s" --graph' +alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign --message "--wip-- [skip ci]"' + +alias gunwip='git rev-list --max-count=1 --format="%s" HEAD | grep -q "\--wip--" && git reset HEAD~1' + + # Git Flow alias gf='git flow' alias gfr='git flow release' -alias gfh='git flow hotfix' +alias gfh='git flow hotfix' \ No newline at end of file