From 5486aa21eb3e3a6068a814531799063280800c19 Mon Sep 17 00:00:00 2001 From: Jonathan Channon Date: Tue, 7 Nov 2017 16:06:19 +0000 Subject: [PATCH] Added --force-with-lease method (#5025) --- plugins/git/git.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 52dcea7dd..4536e191a 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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() {