On Mon, 7 Jul 2014 21:59:56 -0700 (PDT)
dexter ietf <dexter.i...@gmail.com> wrote:

> often times i had to use origin/blabla to refer to my remote branch,
> i was wondering if there is a shortname for this, for example 'remote'
> may be it's already there that i'm not aware of, pleas shed some
> light.

@{u} is a name for "the upstream branch".  So, if you have a branch
"blabla" currently checked out, and have it track its remote branch,
say, "origin/blabla", then you commands like

  git log ^@{u}

would mean the same thing as

  git log ^origin/blabla

I suggest you to read [1] in its entirety as you might pick other
interesting things from there.

And no, there's no "special" names for remote branches because
implementing this would introduce a level of indirection which would
confuse things (what happens if you create a true local branch named

1. https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to