Update: git.plugin.zsh --force => --force-with-lease.
https://developer.atlassian.com/blog/2015/04/force-with-lease/
This commit is contained in:
parent
d848c94804
commit
4681bc1a0a
@ -104,7 +104,7 @@ alias gga='git gui citool --amend'
|
|||||||
|
|
||||||
ggf() {
|
ggf() {
|
||||||
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
|
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
|
||||||
git push --force origin "${b:=$1}"
|
git push --force-with-lease origin "${b:=$1}"
|
||||||
}
|
}
|
||||||
compdef _git ggf=git-checkout
|
compdef _git ggf=git-checkout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user