On Wed, Sep 22, 2010 at 10:15:00PM -0600, Pat Notz wrote: > On Wed, Sep 22, 2010 at 10:05 PM, Pat Notz <patnotz@xxxxxxxxx> wrote: > > $ git rev-parse --symbolic-full-name @{upstream} > > In all fairness, the @{upstream} syntax requires git >= 1.7.0 You can also use: git for-each-ref --format='%(upstream)' `git symbolic-ref HEAD` which has worked since v1.6.3. It also has the advantage that you can ask for the upstream of something besides the HEAD. -Peff -- 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