1
0
Fork 0

Add git alias to diff tags from remote and prune local tags no longer on remote

pull/1224/head
Rui Coelho 8 years ago
parent 4f19700919
commit 7aa73df80c

@ -168,6 +168,11 @@ alias gSs='git submodule sync'
alias gSu='git submodule foreach git pull origin master'
alias gSx='git-submodule-remove'
# Tags (t)
# see http://stackoverflow.com/questions/1841341/remove-local-tags-that-are-no-longer-on-the-remote-repository
alias gtd="diff <(git tag | sort) <( git ls-remote --tags origin | cut -f2 | grep -v '\^' | sed 's#refs/tags/##' | sort)"
alias gtp="git fetch --prune origin +refs/tags/*:refs/tags/*"
# Working Copy (w)
alias gws='git status --ignore-submodules=${_git_status_ignore_submodules} --short'
alias gwS='git status --ignore-submodules=${_git_status_ignore_submodules}'

Loading…
Cancel
Save