Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
5486aa21
Commit
5486aa21
authored
Nov 07, 2017
by
Jonathan Channon
Committed by
Robby Russell
Nov 07, 2017
Browse files
Added --force-with-lease method (#5025)
parent
766b47d8
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/git/git.plugin.zsh
View file @
5486aa21
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment