threads / discuss / 45300

Fwd: HTTP Dumb Push?

Subject: Fwd: HTTP Dumb Push?

## tl;dr

2 messages between Mar 6, 2017 and Mar 6, 2017.

replies: 1people: 2as markdown or json

Christian7573· Mar 6, 2017, 15:38 UTC · lore

Is there a way for git to push to a server using the dumb protocol? Perhaps using the PUT method to upload files? Just wondering cause I just set up a dumb server and pushing to it doesn't work. If that isn't an option, where can I get a smart server?

Jeff King· Mar 6, 2017, 15:45 UTC · re: Christian7573 · lore

Re: Fwd: HTTP Dumb Push?

On Mon, Mar 06, 2017 at 09:38:33AM -0600, Christian7573 wrote:
> Is there a way for git to push to a server using the dumb protocol?
> Perhaps using the PUT method to upload files?
> Just wondering cause I just set up a dumb server and pushing to it
> doesn't work.

Git dumb-http push protocol goes over DAV. There are instructions in Documentation/howto/setup-git-server-over-http.txt of the git repository. They're quite old now, and I have no idea if they've bit-rotted over the years. Hardly anybody uses that solution these days (and it's much less efficient than the smart protocol).

> If that isn't an option, where can I get a smart server?

The CGI ships with the rest of git. Try "git help http-backend", which has some sample config for Apache and lighttpd.

-Peff

← back to recent threads