Add --force-with-lease
for git push
Let's make force-push safe
This commit is contained in:
parent
b908feebcf
commit
44c6728aa0
@ -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)'
|
||||
|
Loading…
Reference in New Issue
Block a user