Cannot fetch or pull from remote git repository on Azure DevOps.

Bell, Norman 5 Reputation points
2025-08-18T19:38:29.2866667+00:00

I have a GIT repository hosted on Azure DevOps. For a number of years, I was able to do all of the normal git operations using Visual Studio 2022. All of a sudden, since about a moth ago, I get this error:

Error encountered while fetching: Failed to fetch from the remote repository. Unable to access [url]: Recv failure. Connection was reset.

I get the same error when I try to push commits or pull or when I try to clone a repository. The URL I am using is correct. The error message above is the error message in the output window. I have updated GIT

Developer technologies | Visual Studio | Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-08-18T19:38:29.6233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    There could be several reasons for the error you are encountering when trying to fetch, pull, or push to your Azure DevOps Git repository. Here are some steps you can take to troubleshoot the issue:

    1. Check Your Internet Connection: Ensure that your internet connection is stable and that you can access Azure DevOps.
    2. Update Git: If you are using an older version of Git, consider upgrading to the latest version. Older versions may have bugs that could lead to issues with fetching or pushing.
    3. Check Remote Repository URL: Verify that the remote repository URL is correct. You can check this by running git remote -v in your local repository.
    4. Inspect Output Window: Since the error message suggests checking the Output window, look for any specific error messages there that could provide more insight into the problem.
    5. Increase http.postBuffer: If you are encountering RPC failed errors, you might need to increase the http.postBuffer size. However, do this cautiously and only after reviewing the suggestions in the documentation.
    6. Network Issues: Sometimes, network configurations or firewalls may block access to Azure DevOps. Ensure that your network settings allow connections to the Azure DevOps services.

    If these steps do not resolve the issue, consider reaching out to Azure DevOps support for further assistance.


    References:

    0 comments No comments

Your answer

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