mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
Added --force-with-lease method (#5025)
This commit is contained in:
parent
766b47d8b8
commit
5486aa21eb
1 changed files with 4 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue