[restored the CC list] On Mon, Mar 9, 2009 at 5:01 PM, Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote: > On Mon, Mar 9, 2009 at 4:39 PM, Paolo Ciarrocchi > <paolo.ciarrocchi@xxxxxxxxx> wrote: [...] >> I wrote a comment about the --branch approach a couple of days ago, dunno why >> but this thread never reached my inbox (replying via gmame web interface). >> >> http://thread.gmane.org/gmane.comp.version-control.git/112527 >> >> As I wrote in my post a friend of mine, new to git, was looking for the >> possibility of cloning a repo and automatically checkout a specific branch. > > Yeah, I also would like this option... one-liner for people that don't > know git at all. > > me: you want my code? just run this command. Yes, that is what my friend was lookin for. I told him to use the following procedure: $ git clone -n URL $ git checkout -b foo origin/bar He is now an almost happy git user :-). That being said, I see the following command as an improvement over the actual GIT UI: $ git clone git://URI -b bar Ciao, -- Paolo http://paolo.ciarrocchi.googlepages.com/ http://mypage.vodafone.it/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html