# git push failed over http

3 messages from 2009-06-28 to 2009-06-28. Participants: Lynn Lin, Jakub Narebski, Tay Ray Chuan.
Thread: https://gitlist.dev/t/19953

## Lynn Lin, 2009-06-28 07:20

Subject: git push failed over http
Message-ID: <82ec251f0906280020p71026a81w57018e9af4d39396@mail.gmail.com>
URL: https://gitlist.dev/e/82ec251f0906280020p71026a81w57018e9af4d39396%40mail.gmail.com

```
Hi,all
       I setup a git public repo (http) over apache2,however I can't
push to remote public repository

$ git push
error: Cannot access URL http://192.168.1.109/demo.git/, return code 22
error: failed to push some refs to 'http://192.168.1.109/demo.git'

Could anyone give some ideas on this problem?


Thanks very much

```

## Jakub Narebski, 2009-06-28 08:11

Subject: Re: git push failed over http
Message-ID: <m3y6rcwz5f.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3y6rcwz5f.fsf%40localhost.localdomain
In-Reply-To: <82ec251f0906280020p71026a81w57018e9af4d39396@mail.gmail.com>

```
Lynn Lin <lynnos@tong-ji.org> writes:

>        I setup a git public repo (http) over apache2,however I can't
> push to remote public repository
> 
> $ git push
> error: Cannot access URL http://192.168.1.109/demo.git/, return code 22
> error: failed to push some refs to 'http://192.168.1.109/demo.git'
> 
> Could anyone give some ideas on this problem?

First, you push over https, not http.  Second, you have to setup
WebDAV on server for pushing via http.

Other than that I cannot help, as I never set up git to push via http.
But I would check the documentation ("Git User's Manual" or "Git
Comunity Book" http://book.git-scm.com,... or perhaps best would be
howto/setup-git-server-over-http.txt)

-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Tay Ray Chuan, 2009-06-28 13:47

Subject: Re: git push failed over http
Message-ID: <be6fef0d0906280647o6ff292a7t334525f95cba41@mail.gmail.com>
URL: https://gitlist.dev/e/be6fef0d0906280647o6ff292a7t334525f95cba41%40mail.gmail.com
In-Reply-To: <m3y6rcwz5f.fsf@localhost.localdomain>

```
Hi,

On Sun, Jun 28, 2009 at 4:11 PM, Jakub Narebski<jnareb@gmail.com> wrote:
> First, you push over https, not http.

It's possible to push over HTTP. Authentication methods include Basic
and Digest.

-- 
Cheers,
Ray Chuan

```
