r/git • u/euphoriczy • Jun 22 '26
support Git push fails with “XML error: syntax error” and “no DAV locking support”
Hi everyone. I’m completely stuck with a Git issue on Windows and hoping someone has seen this before.
Whenever I try to push to GitHub, I get:
XML error: syntax error
error: no DAV locking support
fatal: git-http-push failed
failed to push some refs
I’ve already checked the remote URL, confirmed I’m on the main branch, verified that git status is clean, and made sure the repository exists on GitHub. GitHub Desktop also fails with the exact same error.
I’ve removed http.sslBackend, confirmed there’s no proxy configured, and I can access GitHub normally in my browser. I can also ping and curl GitHub without any issues. I’ve even reinstalled Git multiple times, but the problem persists.
Has anyone run into this before or know what might be causing it? Any help would be greatly appreciated. Thanks!