Thread (21 messages) flat view 21 messages, 7 authors, 2016-06-15

Re: GIT vs Other: Need argument

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:06

Linus Torvalds [off-list ref] writes:
I'd personally be ok with a

	git clone --default=<branch> <url>

to create something where "master" defaults to some other remote branch, 
but that just addresses the syntax. And quite frankly, I don't think we 
*need* to. We should just tell people how _easy_ it is to track some other 
branch now.
I agree with this (and everything you said in your message).
Keep the semantics the same, except that behave as if remote
HEAD pointed at a different branch than what it really points
at.

If Carl is also happy with the syntax, we can conclude this
discussion and:

 (1) have that as an enhancement to git-clone;

 (2) add a how-to document or a section to the manual to teach
     people how to track one or more branches, based on the
     messages already posted on this thread.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help