From: Felipe Contreras Date: Thu, 12 Mar 2009 09:12:16 GMT Subject: Re: [PATCH v2] git-clone: Add option --branch to override initial branch Message-ID: <94a0d4530903120212m360c1db8y763b69bc8610ae64@mail.gmail.com> In-Reply-To: <4d8e3fd30903120148u52164fe3offe665bf70ef6d8d@mail.gmail.com> On Thu, Mar 12, 2009 at 10:48 AM, Paolo Ciarrocchi wrote: > On Thu, Mar 12, 2009 at 5:18 AM, Miles Bader wrote: >> Paolo Ciarrocchi writes: >>> $ git clone -n URL >>> $ git checkout -b foo origin/bar >>> >>> That being said, I see the following command as an improvement over >>> the actual GIT UI: >>> >>>  $ git clone git://URI -b bar >> >> Note that in your original advice, foo and bar can be different, and >> it's not clear to me what "-b bar" should do... >> >> Personally I frequently use foo == bar (no local master branch), but I >> think another common pattern is foo != bar, but foo or bar == "master". >> >> Maybe a syntax similar to push, like "-b LOCAL_BR:REMOTE_BR", >> with "-b BR" being shorthand for "-b BR:BR"? > > Yes, makes sense. +1 -- Felipe Contreras