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

Re: git and "dumb protocols"

From
Andy Whitcroft <apw@shadowen.org>
Date
Nov 2, 2006, 10:42 UTC
Message-ID
<4549CBB1.7010005@shadowen.org>
In-Reply-To
<vpqu01i16g8.fsf@ecrins.imag.fr>
Matthieu Moy wrote:
Show 15 quoted lines
> Hi,
> 
> Is it possible with git to push to a server on which git is not
> installed, and if so, how?
> 
>>From the man page of git, sftp doesn't seem supported, and ssh://
> complains about git-receive-pack not being installed on the server.
> 
> The man page documents a rsync:// protocol, but
> 
> $ git push rsync://some.location.com/
> fatal: I don't handle protocol 'rsync'
> $ 
> 
> What am I missing?

To push only makes sense when you have git installed at the receiving end. It is the interaction between the source and destination git instances which renders the push an effective optimisation.

If you are using rsync, then you can just rsync the whole repository out and what is out there is as valid as your own copy. Of course a repack will make the whole thing changed and you'll pay on the next rsync.

git is designed with this use model involved, you 'git update-server-info' then rsync the repo in-toto out to your http server and it can be fetch'ed from (all be it less efficiently) by another client. All without any requirement for anything other than passive data delivery at the server end. Great if you don't have shell access etc.

-apw
Previous: Matthieu MoyNext: Petr Baudis
Message 2 of 10 in “git and "dumb protocols"”
  1. Matthieu MoyNov 2, 2006
  2. Andy WhitcroftNov 2, 2006
  3. Petr BaudisNov 2, 2006
  4. Johannes SchindelinNov 2, 2006
  5. Petr BaudisNov 2, 2006
  6. Matthieu MoyNov 2, 2006
  7. Jakub NarebskiNov 2, 2006
  8. Petr BaudisNov 2, 2006
  9. Daniel BarkalowNov 3, 2006
  10. Johannes SchindelinNov 2, 2006

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.