Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 13, 2007, 18:41 UTC
- Message-ID
- <7vir46t2cc.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <vpqzlxiiii6.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
> To create an initial commit in a bare repository, the most natural way > for me is to clone it, create the commit in the clone, and then push. > > Bare-ness _does_ matter for that.
You are still wrong.
The most natural is to create a commit in a non-bare repository you create, and push into a bare empty repository. The repository that is pushed into can be non-bare, but bareness of that does _NOT_ matter.
Where bareness matters is on your end, the local private repository you create the initial commit in.