This commit is contained in:
Agustin Pina 2018-07-01 18:50:21 +00:00 committed by GitHub
commit 4bfa099fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,16 @@ ggfl() {
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
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
ggl() {