From fafdbb4def2c4db667286f228419108778532bb6 Mon Sep 17 00:00:00 2001 From: bmcorser Date: Fri, 24 May 2013 16:54:53 +0100 Subject: [PATCH] Push with force (handy for rebasing) --- plugins/git/git.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 6c016aa6b..b74cfb046 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -95,6 +95,8 @@ function current_repository() { # these aliases take advantage of the previous function alias ggpull='git pull origin $(current_branch)' compdef ggpull=git +alias ggpush!='git push origin $(current_branch) --force' +compdef ggpull=git alias ggpush='git push origin $(current_branch)' compdef ggpush=git alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'