# GIT over HTTP

2 messages from 2010-07-22 to 2010-07-22. Participants: Andreas Schneider, Ilari Liusvaara.
Thread: https://gitlist.dev/t/24465

## Andreas Schneider, 2010-07-22 02:03

Subject: GIT over HTTP
Message-ID: <AF1397F5-0394-4CCD-937A-7B11513CC174@iamas.ac.jp>
URL: https://gitlist.dev/e/AF1397F5-0394-4CCD-937A-7B11513CC174%40iamas.ac.jp

```
after lost of research on the www i am still at a loss on how to
properly do push/pull over HTTP

it seems to work on the GIT level, however PUSHS to the remote repository do
NOT show up in the file-structure: adding a file locally, then pushing to the remote repository - the file will not appear in the remote listing, however it became part of the remote repository.


in the httpd.conf i put these directives

<Location /GIT>
  AllowOverride All
  DAV on
</Location>
<Location /GIT/.git>
  AuthType Basic
  AuthName "Git"
  AuthUserFile /etc/httpd/conf/pwd
  Require valid-user
</Location>


as /GIT is the publicly accessible site- i put authentication in the /GIT/.git
location



another issue i can't seem to solve:
having a REWRITE directive in the /GIT directory seems to obstruct any PUSH
attempt from the local repository...



any help would be highy appreciated!


	thanx,

		andreas




. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
IAMAS
Institute of Advanced Media Arts and Sciences

	andreas schneider

	T +81-80-5538 9767
	T.F.M +1-206-350 5073, voiceMail/Fax


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SPAM FILTER notice:
Please note that your mail might get caught by SPAM filtering midways.
Using an unambiguous SUBJECT line helps to sort out the good from the bad ;-)

```

## Ilari Liusvaara, 2010-07-22 04:01

Subject: Re: GIT over HTTP
Message-ID: <20100722040156.GA7353@LK-Perkele-V2.elisa-laajakaista.fi>
URL: https://gitlist.dev/e/20100722040156.GA7353%40LK-Perkele-V2.elisa-laajakaista.fi
In-Reply-To: <AF1397F5-0394-4CCD-937A-7B11513CC174@iamas.ac.jp>

```
On Thu, Jul 22, 2010 at 11:03:50AM +0900, Andreas Schneider wrote:
> after lost of research on the www i am still at a loss on how to
> properly do push/pull over HTTP
> 
> it seems to work on the GIT level, however PUSHS to the remote repository do
> NOT show up in the file-structure: adding a file locally, then pushing to the remote repository - the file will not appear in the remote listing, however it became part of the remote repository.

This is normal. Push does not update working copy. You would need a hook for
that.

< snip dav configuration >

And hooks will not work with WebDAV. You MUST push over some smart transport,
like ssh:// or HTTP with http-backend. HTTP/WebDAV does not cut it.

-Ilari

```
