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

Re: How-to setup an empty remote repository?

From
JHJan Hudec <bulb@ucw.cz>
Date
Sep 4, 2007, 19:47 UTC
Message-ID
<20070904194749.GB3786@efreet.light.src>
In-Reply-To
<d4cf37a60708251400t17b0a097t91f77cbb4e996810@mail.gmail.com>
On Sat, Aug 25, 2007 at 14:00:33 -0700, Wink Saville wrote:
Show 21 quoted lines
> Hello,
> 
> I thought I'd try to setup a shared "empty" remote repository and then
> clone it and then push the initial commit from another maching.
> This failed as shown below:
> 
>  $ cd ~/git-repos
>  $ mkdir test.git
>  $ cd test.git
>  $ git --bare init --shared
>  Initialized empty shared Git repository in /home/wink/git-repos/test.git/
>  $ git-daemon --reuseaddr --verbose --base-path=/home/wink/git-repos \
>     --export-all --enable=receive-pack
> 
> On my other machine:
> 
> $ git clone git://192.168.0.8/test.git
> Initialized empty Git repository in /home/wink/prgs/test/.git/
> fatal: no matching remote head
> fetch-pack from 'git://192.168.0.8/test.git' failed.
> $

Did it configure the repository though? Like setting the url and tracking branches for origin? If it did, it actually did all you needed, so you can count it as success (and the message should talk about having nothing to do rather than failing).

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Wink Saville
Message 4 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.