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

Re: How-to setup an empty remote repository?

From
Petr Baudis <pasky@suse.cz>
Date
Aug 25, 2007, 22:06 UTC
Message-ID
<20070825220629.GC1219@pasky.or.cz>
In-Reply-To
<d4cf37a60708251400t17b0a097t91f77cbb4e996810@mail.gmail.com>
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.

-- 
				Petr "Pasky" Baudis
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
Previous: Wink SavilleNext: Wink Saville
Message 2 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.