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

Re: Publishing Question: First time Pushing to nonexsiting directory

From
Junio C Hamano <junkio@cox.net>
Date
Feb 19, 2007, 08:33 UTC
Message-ID
<7vk5yea6nh.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070219073526.GA26531@cip.informatik.uni-erlangen.de>
Thomas Glanzmann <thomas@glanzmann.de> writes:
> I thought that there is a command available which I can use to push a
> repository to a remote nonexisting location (that gets created on the
> fly) ...
Sorry, there isn't.
> I thought that I read a comment from Linus(?) long time ago to how to obtain
> that. But I am unable to find the e-mail in my archives. If there is no
> standard way, how do you do it? Just rsync the files and change the
> 'origin'?
What you remember might be this one:
    http://thread.gmane.org/gmane.comp.version-control.git/31351/focus=31610

Even if it isn't, it is worth a read. Look for "The creation of a new archive tends to" and "really _has_ to be separate".

There was another discussion around this topic as well:
    http://thread.gmane.org/gmane.comp.version-control.git/32040/focus=32108

which I think is a possible design in the right direction, but I did not hear much from the users (as you can see in the archive link above) so it hasn't materialized. The only real improvement that came out of the thread is deletion of a branch at the remote site with "git-push :refs/heads/to-be-removed".

Another ancient one is:
    http://thread.gmane.org/gmane.comp.version-control.git/12651/focus=12667
Previous: Thomas Glanzmann
Message 6 of 6 in “Publishing Question: First time Pushing to nonexsiting directory”
  1. Thomas GlanzmannFeb 19, 2007
  2. Shawn O. PearceFeb 19, 2007
  3. Thomas GlanzmannFeb 19, 2007
  4. Shawn O. PearceFeb 19, 2007
  5. Thomas GlanzmannFeb 19, 2007
  6. Junio C HamanoFeb 19, 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.