From 0afa4fe1f8ee03f2ab682c7cf426fd25ed3dbb43 Mon Sep 17 00:00:00 2001 From: Xavier Haniquaut Date: Mon, 19 Oct 2015 11:33:44 +0200 Subject: [PATCH] Add gpub (publish) alias Alias for publishing a local branch to remote and set tracking --- plugins/git/git.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index d78b82df..5f1e9b66 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -176,6 +176,7 @@ alias gpd='git push --dry-run' alias gpoat='git push origin --all && git push origin --tags' compdef _git gpoat=git-push alias gpu='git push upstream' +alias gpub='git push --set-upstream origin $(current_branch)' alias gpv='git push -v' alias gr='git remote'