mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Add --force-with-lease for git push
Let's make force-push safe
This commit is contained in:
parent
b908feebcf
commit
44c6728aa0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue