1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 15:30:40 +01:00

Added --force-with-lease method (#5025)

This commit is contained in:
Jonathan Channon
2017-11-07 16:06:19 +00:00
committed by Robby Russell
parent 766b47d8b8
commit 5486aa21eb

View File

@@ -107,6 +107,10 @@ ggf() {
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
git push --force origin "${b:=$1}"
}
ggfl() {
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
git push --force-with-lease origin "${b:=$1}"
}
compdef _git ggf=git-checkout
ggl() {