aliases/git: Add alises fo git stash push/pop

pull/1551/head
David Farrell 2020-04-06 10:16:11 -07:00
parent e33e4eeb00
commit 7fe7fc020e
No known key found for this signature in database
GPG Key ID: 1CCA28D0E300B56F
1 changed files with 11 additions and 0 deletions

View File

@ -82,10 +82,21 @@ alias gprom="git fetch origin master && git rebase origin/master && git update-r
alias gpunch="git push --force-with-lease" alias gpunch="git push --force-with-lease"
alias ggui="git gui" alias ggui="git gui"
alias gcsam="git commit -S -am" alias gcsam="git commit -S -am"
# Stash aliases
alias gst="git stash" alias gst="git stash"
alias gstb="git stash branch" alias gstb="git stash branch"
alias gstd="git stash drop" alias gstd="git stash drop"
alias gstl="git stash list" alias gstl="git stash list"
# Push introduced in git v2.13.2
alias gstpu="git stash push"
alias gstpum="git stash push -m"
# Save deprecated since git v2.16.0
# - aliases now resolve to push
alias gsts="git stash push"
alias gstsm="git stash push -m"
# Alias gstpo added for symmetry with gstpu (push)
# - gstp remains as alias for pop due to long-standing usage
alias gstpo="git stash pop"
alias gstp="git stash pop" alias gstp="git stash pop"
# Switch aliases - Requires git v2.23+ # Switch aliases - Requires git v2.23+
alias gsw="git switch" alias gsw="git switch"