git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git push failed over http

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 28, 2009, 08:11 UTC
Message-ID
<m3y6rcwz5f.fsf@localhost.localdomain>
In-Reply-To
<82ec251f0906280020p71026a81w57018e9af4d39396@mail.gmail.com>
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
Previous: Lynn LinNext: Tay Ray Chuan
Message 2 of 3 in “git push failed over http”
  1. Lynn LinJun 28, 2009
  2. Jakub NarebskiJun 28, 2009
  3. Tay Ray ChuanJun 28, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.