Add ggsup alias

Quick way to `git branch --set-upstream-to=origin/<branch> <branch>`
It uses the `$(current_branch)` function
This commit is contained in:
leomilrib 2015-03-26 19:20:08 -03:00
commit 5f8a54f971

View file

@ -146,6 +146,8 @@ alias ggpush='git push origin $(current_branch)'
compdef ggpush=git
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
compdef ggpnp=git
alias ggsup='git branch --set-upstream-to=origin/$(current_branch) $(current_branch)'
compdef ggsup=git
# Pretty log messages
function _git_log_prettily(){