git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC] git clone --checkout <branch>

From
Jeff King <peff@peff.net>
Date
Feb 16, 2010, 11:07 UTC
Message-ID
<20100216110724.GA25173@coredump.intra.peff.net>
In-Reply-To
<be6fef0d1002160248h7410d4edu6e3ed1fd27c40059@mail.gmail.com>
On Tue, Feb 16, 2010 at 06:48:42PM +0800, Tay Ray Chuan wrote:
> what do you guys think about allowing users to specify the branch to
> checkout when cloning, instead of the default HEAD of the to-be-cloned
> repository?

I think it's a great idea, but that we should call it "--branch" and that I should travel back in time to implement it last September as 7a4ee28.

-Peff
Previous: Tay Ray ChuanNext: Tay Ray Chuan
Message 2 of 3 in “[RFC] git clone --checkout <branch>”
  1. Tay Ray ChuanFeb 16, 2010
  2. Jeff KingFeb 16, 2010
  3. Tay Ray ChuanFeb 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.