mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-26 05:21:17 +02:00
Merge d6a219691e into 27b9aed87f
This commit is contained in:
commit
4bfa099fc2
1 changed files with 10 additions and 0 deletions
|
|
@ -112,6 +112,16 @@ ggfl() {
|
||||||
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
|
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
|
||||||
git push --force-with-lease origin "${b:=$1}"
|
git push --force-with-lease origin "${b:=$1}"
|
||||||
}
|
}
|
||||||
|
ggfr() {
|
||||||
|
local answer
|
||||||
|
vared -p "Do you want to rebase first? Y/N " -c anwser
|
||||||
|
case $anwser in
|
||||||
|
[Yy]* ) git rebase master;;
|
||||||
|
[Nn]* ) :;;
|
||||||
|
* ) echo "Please answer yes or no" && return;;
|
||||||
|
esac
|
||||||
|
ggf
|
||||||
|
}
|
||||||
compdef _git ggf=git-checkout
|
compdef _git ggf=git-checkout
|
||||||
|
|
||||||
ggl() {
|
ggl() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue