Commit 5486aa21 authored by Jonathan Channon's avatar Jonathan Channon Committed by Robby Russell
Browse files

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

parent 766b47d8
...@@ -107,6 +107,10 @@ ggf() { ...@@ -107,6 +107,10 @@ ggf() {
[[ "$#" != 1 ]] && local b="$(git_current_branch)" [[ "$#" != 1 ]] && local b="$(git_current_branch)"
git push --force origin "${b:=$1}" 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 compdef _git ggf=git-checkout
ggl() { ggl() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment