VS 2017 Pull operation failed

15,104

Solution 1

Below steps worked.

  1. git fetch -p
  2. deleting the local branch and check out it again.

But make sure you don't have any commits to sync.

  1. Worst case you can delete the local repository and clone again.

red below articles as well. this might be useful.

More info 1

More Info 2

Solution 2

There are various reasons this can happen. I've been frustrated a few times when the only feedback I could see was "Pull operation failed." Here are a couple of steps that have helped me...

  • If you have any local changes, try performing a Commit All from the Changes section of VS Team Explorer. Then try to Pull again. If you're able to do this, then chances are there are conflicts you'll have to resolve, but VS/Git should allow you to resolve them at this point.
  • If that doesn't work, go to the Sync section of VS Team Explorer and try doing a Fetch. Hopefully the you see a list of the changes you need to get pulled to your machine. If so, right-click the oldest one and select Cherry-Pick. When you do this, VS/Git will show you any problems (at the top of the Synchronization tab) with the specific pull. If no issues are listed, then try selecting/cherry-picking the next set of changes you need to pull, and continue this until, hopefully, you find some info that helps you start digging into the source of the problem.
Share:
15,104
tech-gayan
Author by

tech-gayan

I am a Tech Lead who loves developing enterprise level Software Solutions in various domains with over 9+ years of experience. I have experience in development of using several tools and technologies. I’m passionate on mapping business requirements to technical solutions. I really enjoy working in projects that run based on Agile methodologies as it gives more flexibility to come up with best solution. Being a tech enthusiastic I enjoy spending time on research into cutting edge technologies and I was inspired by the power of Java Script. it leads me to go into detail on Native JavaScript, JavaScript Frameworks (Angular, Knockout), MVC, JQuery, and Web API. Not only the IT, I’m fascinated by other engineering disciplines such as automotive including motor racing, which I explore as a hobby. While taking a break from work I love to have some music sessions with my colleagues as I love to play guitar and it really add some color to everyday life. Specialties: I have been privileged to work across different technologies and platforms over the past years. Windows Application Development Web Application Development (MVC, JQuery, Json), Web Services (REST, SOAP), .NET Technologies (MVC, Entity Framework), Native JavaScript, XML, Light weight JS back ends

Updated on June 04, 2022

Comments

  • tech-gayan
    tech-gayan almost 2 years

    I went to do a sync in VS 2017 (15.3.5) Team explorer and it says pull operation failed. I am using git as version control.

    This is the error I got:

    Remote: Microsoft (R) Visual Studio (R) Team Services        
    Remote: 
    Remote: Found 18 objects to send. (631 ms)        
    Pull operation failed.*
    

    I've tried several things:

    1. Delete the branch and checkout again.
    2. Connect to team system again.

    Nothing works. expecting expert advice.