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

Re: How-to setup an empty remote repository?

From
Wink Saville <wink@saville.com>
Date
Aug 25, 2007, 22:45 UTC
Message-ID
<d4cf37a60708251545m7911e346m18fc183da48b4e63@mail.gmail.com>
In-Reply-To
<20070825220629.GC1219@pasky.or.cz>
On 8/25/07, Petr Baudis <pasky@suse.cz> wrote:
Show 15 quoted lines
> On Sat, Aug 25, 2007 at 11:00:33PM CEST, Wink Saville wrote:
> > In the instructions I followed for setting up a remote repository,
> > http://www.kernel.org/pub/software/scm/git/docs/cvs-migration.html,
> > it uses an existing repository. So is it true you can't clone an
> > empty remote repository, or did I do something wrong?
>
> It is true that you can't clone it. "Cloning remote repository" means
> just "get all the remote branches and set them up locally". In empty
> repository there are no branches yet, so there's nothing to clone.
>
> I guess this should be covered in the FAQ (if it isn't already), it is
> one of the top questions repo.or.cz users have and I think I see it
> frequently on IRC as well.
>
> --
I didn't see it here, http://git.or.cz/gitwiki/GitFaq.

I would have expected it to setup an empty repository and then populate it with 0 remote branches. Obviously, its a corner case and maybe doesn't need addressing but if it is asked a lot then maybe it should work that way.

Thanks,
Wink
Previous: Petr BaudisNext: Jan Hudec
Message 3 of 4 in “How-to setup an empty remote repository?”
  1. Wink SavilleAug 25, 2007
  2. Petr BaudisAug 25, 2007
  3. Wink SavilleAug 25, 2007
  4. Jan HudecSep 4, 2007

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.