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

Re: git over rsync+ssh

From
Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
Date
Jul 10, 2008, 10:09 UTC
Message-ID
<g54n4a$kek$2@ger.gmane.org>
In-Reply-To
<20080709171721.GA3679@mithlond.arda.local>
Teemu Likonen venit, vidit, dixit 09.07.2008 19:17:
Show 13 quoted lines
> Avery Pennarun wrote (2008-07-09 12:02 -0400):
> 
>> I don't know if this will help in your case, but if it will be only
>> you pushing to this repository, one option is to simply create a bare
>> push repository on your local machine, and then manually just
>> rsync+ssh it to the remote machine from the command line as
>> a so-called "push" operation.
> 
> Again, I don't know if this is helpful for Michael, but this "manual"
> rsyncing can be done automatically via hooks/post-receive. Just like
> Avery said, "git push" to a bare repository in a local machine and this
> bare repo has post-receive hook which does "git update-server-info" and
> the rsyncing (or "sitecopy --update" or similar).

Thanks for your hints. Your posts combined made me understand the trick, using the "auxiliary" local repo for the hooks triggering the rsync. I'll hopefully remember it when I need it; in this case, a second repo would not have been very convenient, but I managed to get git running on the server side meanwhile.

Michael
Previous: Teemu LikonenNext: Stephen Sinclair
Message 6 of 8 in “git over rsync+ssh”
  1. Michael J GruberJul 9, 2008
  2. Mike RalphsonJul 9, 2008
  3. Michael J GruberJul 10, 2008
  4. Avery PennarunJul 9, 2008
  5. Teemu LikonenJul 9, 2008
  6. Michael J GruberJul 10, 2008
  7. Stephen SinclairJul 9, 2008
  8. Michael J GruberJul 10, 2008

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.