I found out I needed to create an .lfsconfig file. After that it worked fine
Git with DevOps giving error batch request: missing protocol: "origin.git/info/lfs"
I have an empty repo I am trying to populate from a local Unreal one. I have already run:
git config lfs.origin.git/info/lfs.locksverify false
But, when I push, I get:
push --set-upstream origin master
Uploading LFS objects: 0% (0/2), 0 B | 0 B/s, done.
batch request: missing protocol: "origin.git/info/lfs"
error: failed to push some refs to....
Azure DevOps
2 answers
Sort by: Most helpful
-
-
Q&A Assist2026-02-22T23:19:43.4166667+00:00 AI generated content. This question contains an answer created with AI from Q&A Assist. Learn moreThe error message you're encountering, "batch request: missing protocol: 'origin.git/info/lfs'", suggests that there is an issue with the way the Git LFS (Large File Storage) is configured for your repository. This typically occurs when the LFS URL is not set correctly in your Git configuration.
To resolve this issue, you should check the LFS URL configuration. You can do this by running the following command:
git lfs envThis command will show you the current LFS configuration, including the
EndpointURL. Ensure that the URL is correctly set to point to your Azure DevOps repository. If it is incorrect or missing, you can set it using:git config lfs.url https://<your-organization>.visualstudio.com/_git/<your-repo>/_git/lfsMake sure to replace
<your-organization>and<your-repo>with your actual Azure DevOps organization and repository names. After updating the LFS URL, try pushing your changes again.If the issue persists, ensure that you have the correct permissions set for the repository and that your Git LFS is properly installed and configured.
References: