Git http push failed

I am trying to do this job, but it does not work.

I usually have no problem clicking on the server, but now I keep getting the following:

git push origin master Password for 'https:// JZ0258213@111.23.15.321 ': Fetching remote heads... refs/ refs/tags/ refs/heads/ updating 'refs/heads/master' from 0000000000000000000000000000000000000000 to 1c51a98a88f51fa3fe9ab527a6413f117fade432 sending 1468 objects PUT 55113af6418f7w77c9a87b3b470c53a64e62e314 failed, aborting (22/403) Updating remote server info UNLOCK HTTP error 400 fatal: git-http-push failed 

When I try to clone a file from the server or when I try to use any other command, it works fine, it's just a push command that doesn't work.

Thanks.

+4
source share
2 answers

I found a solution, I just needed to use 'git gc', and when I clicked again, it worked.

+1
source

The httpd user needs write access to all repo files. The best option would be chown -R all files for the httpd user.

0
source

All Articles