Add WIP commit aliases

This commit is contained in:
Marley Rae 2024-01-25 12:30:14 -08:00
parent 7b889a5bfe
commit fca3768cb0

View file

@ -128,6 +128,9 @@ alias gstap="git stash pop" # retrieve changes
alias gstal="git stash list" # list stashes
alias gstas="git stash show --text" # --text treats all files as text
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'
alias gcl="git clean -f" # remove unknown (untracked and unignored) files
alias gcldr="git clean --dry-run"