5486aa21eb3e3a6068a814531799063280800c19
- Author
- Jonathan Channon <jonathan.channon@gmail.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Added --force-with-lease method (#5025)
Diff
1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2index 52dcea7dd135341fcd1df283b2e69ae31e2377c1..4536e191a808d9d21b2ec013c2e8892f5e4aadb3 100644
3--- a/plugins/git/git.plugin.zsh
4+++ b/plugins/git/git.plugin.zsh
5@@ -107,6 +107,10 @@ ggf() {
6 [[ "$#" != 1 ]] && local b="$(git_current_branch)"
7 git push --force origin "${b:=$1}"
8 }
9+ggfl() {
10+[[ "$#" != 1 ]] && local b="$(git_current_branch)"
11+git push --force-with-lease origin "${b:=$1}"
12+}
13 compdef _git ggf=git-checkout
14
15 ggl() {