Permalink
Browse files

No, no. Default the source branch.

  • Loading branch information...
1 parent a8df6ef commit 29919b656f699693c29ee61f7439fd18d23d3b31 @bjhess committed Aug 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bash/aliases
View
@@ -85,7 +85,7 @@ gcor(){ git branch --track $1 origin/$1; gco $1; } # add remote root branch nam
# Create a new remote branch. Then checkout with remote branch tracking.
# gcobr(){ git branch $1; git push origin $1; git branch -D $1; gcor $1; }
# gcobr(){ git branch $1; git push origin $1; }
-gcobr(){ default_remote=origin; git push $2:-$default_remote master:$1; git branch --track $1 $2:-$default_remote/$1; gco $1; }
+gcobr(){ source_branch=master; git push origin ${2-source_branch}:$1; git branch --track $1 origin/$1; gco $1; }
# Heroku
alias hd="git push heroku master;"

0 comments on commit 29919b6

Please sign in to comment.