git push error/Cannot access,return code 22

asked May 7, 2012 in General by sally23
edited May 7, 2012 by sally23

I have set up a remote git repository on my server. This is the code
/var/lib/git/myproject1 ## the git repository for myproject1
/var/lib/git/myproject2 ## the git repository for myproject2

/var/www/  ## symbolic link to /var/lib/git/myproject1
/var/www/  ## symbolic link to /var/lib/git/myproject2
This is my .gitconfig
    excludesfile = /var/www/.gitignore
        name = webguy
        email =
On my local host I successfully ran a git pull mypro1 master, where mypro1 points to The pull downloaded all the files from the remote repository as expected. But when I do a git push mypro1 master, I get the error
Cannot access URL, return code 22 fatal: git-http-push failed

Does anyone know what could be the problem here?

1 Answer

0 like 0 dislike
answered May 7, 2012 by randy999
You'll need to enable dav to actively push changes over http. Check out this guide  for details on how to install it, and other things that you might  have missed.