Visual Studio error pushing to remote git - git-tfs migration

dotnetmensch picture dotnetmensch · Jan 26, 2016 · Viewed 17.2k times · Source

I am trying to migrate a TFVC project to Visual Studio Online git repository using git-tfs. Everything works fine for the migration however now whenever I try to sync using Visual Studio 2015 I get this error.

Error encountered while pushing to the remote repository: report-status: protocol error

Even though VS reports this error everything is pushed correctly to the remote repo. If I use the command line or Git Extensions instead of VS I get no error of any kind.

I also get a lot of strange behavior when trying to create branches. It works fine outside of VS. Using VS to branch doesn't work until I first create a branch outside of VS.

Has anybody run into this issue?

Answer

GraehamF picture GraehamF · Jul 2, 2016

I got this error but with slightly different behavior: changes were NOT pushed to the remote server.

{Local-Branch} > Right-Click > Push did NOT work for me, but the following did:

From the Team Explorer Home screen in Visual Studio 2015:

  1. Click Branches
  2. Click on the dropdown at the top that has Branches | {ProjectName}
  3. Select Sync
  4. Click Sync button.

This pushed changes from my local branch to my remote branch.