Share via

Git with DevOps giving error batch request: missing protocol: "origin.git/info/lfs"

AndyMac 0 Reputation points
2026-02-22T23:19:37.42+00:00

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
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AndyMac 0 Reputation points
    2026-02-22T23:41:05.9+00:00

    I found out I needed to create an .lfsconfig file. After that it worked fine

    0 comments No comments

  2. Q&A Assist
    2026-02-22T23:19:43.4166667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The 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 env
    

    This command will show you the current LFS configuration, including the Endpoint URL. 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/lfs
    

    Make 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:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.