From: Andy Whitcroft <apw@shadowen.org>
To: git@vger.kernel.org
Subject: Re: git and "dumb protocols"
Date: Thu, 02 Nov 2006 10:42:57 +0000 [thread overview]
Message-ID: <4549CBB1.7010005@shadowen.org> (raw)
In-Reply-To: <vpqu01i16g8.fsf@ecrins.imag.fr>
Matthieu Moy wrote:
> 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
next prev parent reply other threads:[~2006-11-02 10:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-02 10:36 git and "dumb protocols" Matthieu Moy
2006-11-02 10:42 ` Andy Whitcroft [this message]
2006-11-02 10:48 ` Petr Baudis
2006-11-02 10:57 ` Johannes Schindelin
2006-11-02 11:02 ` Petr Baudis
2006-11-02 12:04 ` Matthieu Moy
2006-11-02 12:12 ` Jakub Narebski
2006-11-02 12:21 ` Petr Baudis
2006-11-03 23:27 ` Daniel Barkalow
2006-11-02 10:51 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4549CBB1.7010005@shadowen.org \
--to=apw@shadowen.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox