On Tue, Mar 30, 2010 at 9:06 PM, Kevin Ballard <kevin@xxxxxx> wrote: > Is there any way in a refspec to specify the tracking branch > corresponding to a local branch? Specifically, I want to be able to > write some variant of `git push origin +foo` and have it push foo to > its tracking branch. I can't find any way to do that according to > the current documentation. This is probably a stupid suggestion, but since you're only likely to have a single local branch corresponding to a particular remote branch, the easiest answer is to rename your local branch to have the same name :) Otherwise, what you probably want is: git push origin localbranchname:remotebranchname You can also delete a remote branch: git push origin :remotebranchname Have fun, Avery -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html