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

Re: git clone --bare doesn't create refs/heads/*?

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Jan 29, 2009, 14:36 UTC
Message-ID
<be6fef0d0901290636m5b472499mdf614841a06ec978@mail.gmail.com>
In-Reply-To
<20090129142657.GG21473@genesis.frugalware.org>
Hmm, no, --mirror adds extra remote tracking information.
Quoting the git-clone man page:
"...the branch heads at the remote are copied directly..."
which is to say, git clone --bare isn't doing what it's supposed to do.
that said, i'm not too sure about this, hence this thread.
On Thu, Jan 29, 2009 at 10:26 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
Show 6 quoted lines
> On Thu, Jan 29, 2009 at 10:06:39PM +0800, Tay Ray Chuan <rctay89@gmail.com> wrote:
>> afaik, a bare repository is just a copy of the .git folder of the
>> cloned repository. why isn't any of its branches copied too?
>
> Maybe you're searching for git clone --mirror and not git clone --bare?
>
-- 
Cheers,
Ray Chuan
Previous: Miklos VajnaNext: Miklos Vajna
Message 3 of 5 in “git clone --bare doesn't create refs/heads/*?”
  1. Tay Ray ChuanJan 29, 2009
  2. Miklos VajnaJan 29, 2009
  3. Tay Ray ChuanJan 29, 2009
  4. Miklos VajnaJan 29, 2009
  5. Tay Ray ChuanJan 29, 2009

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.