Git fatal: git-http-push failed


From what I understand, to have git working through http, I have to enable DAV, like seen here.

But from this comment from @Joe it seems DAV should be avoided…

Is it possible to git push through ssh? or only http?

Any other suggestion?

If I have to enable DAV, any guidelines?

Thank you very much.


Of course. That’s the usual method.

@Joe thanks for your help.

I changed the remote url from http to https and the error stopped.

I thought the server setup was done in Virtualmin, but I’ll take a look at git server setup.

It’s not very clear to me what is done in Virtualmin Git Services and what extra steps should be done after, but I’ll dig into it.


Oh, you’re using the Virtualmin git module. Hmm…I haven’t used it in many years…I don’t remember how it works. I guess it does need DAV, probably. But, that’s probably a mistake. It’s an old module. Still maintained, but only lightly. With so many very nice git hosting services (github, gitlab, etc.) that are cheap or free for small developers it’s kind of redundant effort.

1 Like

My idea was to use git to deploy to production. I thought git module could help with that, but I guess that’s not the design.

I used this procedure with plesk and it worked very nice.

Maybe to go on the wishlist :slight_smile:

I don’t think I understand what Plesk has to do with that? I mean, it’s definitely a good idea to use git to track your websites, but I’m having trouble visualizing what the control panel would have to do with it. What does that workflow look like?

You could have something like this: one remote repository on Github (eg. origin) one remote repository (eg. production) in production server (eg. Plesk). You do your development activities (issues management, pull requests, …) in Github and when you want to deploy you will push to production repository.

In Plesk you could set the active branch (master or main or whatever) and the web folder (eg. httpdocs). When you push to Plesk repo the code will be “deployed”. You can also configure a hook to automatically push to production when you push to Github.

You can check here Plesk information about “Deploying Content Using Git”.

Let me say I don’t have much knowledge/experience in DevOps and not sure if this is a best practice, but I’ve used it in some small projects with success. In large projects in Rails a deploy tool like Capistrano is necessary because of the several tasks you need to perform in deployment.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.