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