Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 325
dotnetmensch Avatar asked Jan 26 '16 17:01

dotnetmensch


2 Answers

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.

like image 66
GraehamF Avatar answered Sep 19 '22 11:09

GraehamF


You need to make sure you have a branch set as default. Go to the settings of you repo, and click on version control, then right click on your master branch to set as default.

enter image description here

like image 28
TK-421 Avatar answered Sep 21 '22 11:09

TK-421