From ef3600b14f6f005c9b2a86bd1e3ea8e7350dec63 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 25 Nov 2010 07:17:20 -0800 Subject: [PATCH] shortcut for setting tracked upstream branch --- zsh/zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index e178ff4..c869864 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -251,6 +251,7 @@ alias gl='git log' alias glo='git log --oneline --decorate' alias gls='git log --stat' alias gpr='git pull --rebase' +alias gu='git-branch-set-upstream' alias m='hub merge' alias pob='git-pull-origin-branches' alias r='hub remote' @@ -267,6 +268,7 @@ else fi git-branch-track-origin() { git branch --track "$1" origin/"$1" } +git-branch-set-upstream() { git branch --set-upstream "$1" origin/"$1" } git-pull-origin-branches() { if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then