On Tue, 2 Jun 2015 16:08:24 +0200
Magnus Therning <mag...@therning.org> wrote:

> > [...]
> >> at the next `git fetch` people will see that branch locally and
> >> they can check it out using
> >>
> >>     % git checkout -b temporary origin/temporary
> > [...]
> >
> > As a useful shortcut, these days
> >
> >   git checkout origin/temporary
> >
> > will create a local branch named "temporary" which is set to track
> > origin/temporary.
> >
> > Of course, this shortcut is only to be used by those who understand
> > what happens, and why.
> This exemplifies the main issue with `git` I think: the developers
> keep on improving on the UI without telling me! ;)

Oops, I actually disinformed you: the correct command would be

  git checkout temporary

That is, if a local branch with that name does not exist but there is a
remote-tracking branch with such name, but only in a single remote
(that is, there is no ambiguity), the command behaves as I outlined
above.  Sorry for the confusion.

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