Pieter Praet wrote:
> Almost.
>
> $ git checkout <branch>
> ... will do this for you iff that branch exists in only a single remote.
>
> $ git checkout -b <branch>
> ... on the other hand, will create and checkout <branch> at HEAD.
Fair enough. Yeah, git is conservative by design. builtin/checkout.c:929:
if (dwim_new_local_branch_ok &&
!check_filename(NULL, arg) &&
argc == 1) {
const char *remote = unique_tracking_name(arg, rev);
if (!remote)
return argcount;
*new_branch = arg;
arg = remote;
/* DWIMmed to create local branch */
}
--
---
You received this message because you are subscribed to the Google Groups
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.