Update: git.plugin.zsh --force => --force-with-lease.

https://developer.atlassian.com/blog/2015/04/force-with-lease/
This commit is contained in:
薛定谔的猫 2017-08-03 02:16:06 +08:00
parent d848c94804
commit 4681bc1a0a
No known key found for this signature in database
GPG Key ID: AE144669C5C7D80F

View File

@ -104,7 +104,7 @@ alias gga='git gui citool --amend'
ggf() {
[[ "$#" != 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