threads / discuss / 19953

git push failed over http

Subject: git push failed over http

## tl;dr

3 messages between Jun 28, 2009 and Jun 28, 2009.

replies: 2people: 3as markdown or json

Lynn Lin· Jun 28, 2009, 07:20 UTC · lore
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· Jun 28, 2009, 08:11 UTC · re: Lynn Lin · lore

Re: git push failed over http

Lynn Lin <lynnos@tong-ji.org> writes:
Show 8 quoted lines
>        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· Jun 28, 2009, 13:47 UTC · re: Jakub Narebski · lore

Re: git push failed over http

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

← back to recent threads