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

Re: how to clone/checkout branch/tag vesion from GIT repository

From
Jeff King <peff@peff.net>
Date
May 14, 2012, 17:33 UTC
Message-ID
<20120514173358.GA32368@sigill.intra.peff.net>
In-Reply-To
<1336818392259-7553161.post@n2.nabble.com>
On Sat, May 12, 2012 at 03:26:32AM -0700, supadhyay wrote:
> 2- from gitolite_home I run below command
> git clone ssh://git@mygitserver.com/ora/data/test.git
> (tis is do the clone of my repository so I can see the actual data inside
> the repository)

As I mentioned before, this should probably be a --mirror clone to get all of the remote branches, and to create a bare repository. I don't use gitolite, so perhaps there is some need I don't know about for it to have a working tree. But in general, I would think having a non-bare repository would be a problem here, as it would prevent pushes to the checked-out branch (but again, maybe there is some gitolite-specific thing I am missing).

-Peff
Previous: supadhyay
Message 9 of 9 in “how to clone/checkout branch/tag vesion from GIT repository”
  1. supadhyayMay 10, 2012
  2. Jeff KingMay 10, 2012
  3. Suchi UpadhyayMay 10, 2012
  4. Jeff KingMay 10, 2012
  5. supadhyayMay 11, 2012
  6. Jeff KingMay 11, 2012
  7. supadhyayMay 12, 2012
  8. supadhyayMay 14, 2012
  9. Jeff KingMay 14, 2012

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.