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

Specifying default checkout branch in url

From
RCResul Cetin <resul-cetin@gmx.net>
Date
Dec 11, 2008, 11:21 UTC
Message-ID
<200812111221.36561.Resul-Cetin@gmx.net>

Hi, I have the problem that I want to checkout a specific branch in a git-clone run. Someone at the debian-mentors mailing list[1] has suggested to use a url like git://git.myserver.org/project.git#branchname to checkout a branch with the name branchname by default. But this doesn't seem to work. Is there already another way to encode this in the url? More information why I cannot change HEAD of the repository can be found in a bug report against debcheckout[2].

Regards,
	Resul

[1] http://article.gmane.org/gmane.linux.debian.devel.mentors/34421 [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508433

Next: Mikael Magnusson
Message 1 of 2 in “Specifying default checkout branch in url”
  1. Resul CetinDec 11, 2008
  2. Mikael MagnussonDec 11, 2008

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.