Add --force-with-lease for git push

Let's make force-push safe
This commit is contained in:
Stanislav Mekhonoshin 2017-03-10 15:40:35 +03:00 committed by GitHub
parent b908feebcf
commit 44c6728aa0

View File

@ -149,7 +149,7 @@ compdef _git ggpur=git-checkout
alias ggpull='git pull origin $(git_current_branch)'
compdef _git ggpull=git-checkout
alias ggpush='git push origin $(git_current_branch)'
alias ggpush='git push origin $(git_current_branch) --force-with-lease'
compdef _git ggpush=git-checkout
alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'