Added --force-with-lease method

This commit is contained in:
Jonathan Channon 2016-04-20 09:35:27 +01:00
commit 6ad94e14b1

View file

@ -95,6 +95,10 @@ ggf() {
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
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
ggl() {
if [[ "$#" != 0 ]] && [[ "$#" != 1 ]]; then