Thread (1 message) 1 message, 1 author, 2016-06-15

Re: DWIM "git checkout frotz" to "git checkout -b frotz origin/frotz"

From: Bruce Stephens <hidden>
Date: 2016-06-15 22:48:55

Clemens Buchacher [off-list ref] writes:

[...]
"git checkout <branch>", on the other hand, will create a branch
based on a remote branch, even though you neither asked for a new
branch, nor did you specify any remote at all.
Provided such a branch doesn't already exist and that only one remote
matches.  I agree it's magic (and understand why people might not like
it) but personally I find it convenient.

Possibly (because it hides the distinction between local and remote
branches a little) it would be better opt-in than the default, but I
think a reasonable case could be made in both directions.

[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help