X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a3202984f1ddcc27ad22d2d9b23e7e0fe72c79c3..4f4ac88afff1c5a331c5f50b2b9e1af005c0ae93:/zsh/aliases/git.zsh diff --git a/zsh/aliases/git.zsh b/zsh/aliases/git.zsh index 301a15a..d487d61 100644 --- a/zsh/aliases/git.zsh +++ b/zsh/aliases/git.zsh @@ -3,6 +3,8 @@ alias g='git' compdef g=git alias gst='git status' compdef _git gst=git-status +alias gsts='git status -s' +compdef _git gsts=git-status alias gl='git pull' compdef _git gl=git-pull alias gup='git pull --rebase' @@ -22,6 +24,18 @@ compdef _git gca=git-commit alias gco='git checkout' compdef _git gco=git-checkout alias gcm='git checkout master' +alias gs='git stash save' +compdef _git gs=git-stash +alias gsa='git stash apply' +compdef _git gsa=git-stash +alias gsp='git stash pop' +compdef _git gsp=git-stash +alias gsd='git stash drop' +compdef _git gsd=git-stash +alias gsl='git --no-pager stash list' +compdef _git gsl=git-stash +alias gss='git stash show --patch' +compdef _git gss=git-stash alias gr='git remote' compdef _git gr=git-remote alias grv='git remote -v' @@ -38,6 +52,8 @@ alias gb='git branch' compdef _git gb=git-branch alias gba='git branch -a' compdef _git gba=git-branch +alias gbm='git branch --merged' +alias gbdm='git branch --merged | grep -ve "\*" -e "master" | xargs -n 1 git branch -d' alias gcount='git shortlog -sn' compdef gcount=git alias gcl='git config --list' @@ -52,8 +68,6 @@ alias glgg='git log --stat --graph --max-count=20 --decorate' compdef _git glgg=git-log alias glgga='git log --stat --graph --decorate --all' compdef _git glgga=git-log -alias gss='git status -s' -compdef _git gss=git-status alias ga='git add' compdef _git ga=git-add alias gm='git merge'