Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Team Explorer + VS Online Sync error

I'm using VS Online + Git for Version Control, and everything worked fine for a long time until yesterday, when I reinstalled windows and installed VS 2015. I've opened VS and chose option Open from source control and connected to my VS online account, but when I tried to clone project to my PC I got error:

Error encountered while fetching: Invalid redirect to a non-git endpoint

I've tried few things (mostly randomly because I could not find anything helpful about this err) and nothing helped.

Then I've opened Git bash and manually cloned project to my PC and that wen without any problems. After that I opened project in VS and did some changes, committed dose changes locally without any problems, but when I tried to Sync my project I got same error again. Again, pushing code to server from Git bash went without any problems.

Also I've tried to clone project from another VS online account trough VS + Team Explorer and that went fine.

Could you please help me ?

like image 735
hyperN Avatar asked Oct 19 '15 09:10

hyperN


2 Answers

To resolved this I had to logout of Team Foundation Server. In VS 2015, in the Team tab, select "Disconnect from Team Foundation Server". You can close VS and restart it if you choose but I don't think that makes a difference. When VS is back up go to the Team tab once again and select "Manage Connections", then click on the "Manage Connections" link then follow the steps to login.

like image 57
user5467298 Avatar answered Sep 18 '22 15:09

user5467298


Encountered same problem just now - after some google-fu nothing changed. But then tried following steps and it worked (push manually before doing it or safe your changes somewhere):

  • close solution
  • delete whole directory where your repo is located
  • (in Team Explorer View) clicked on the repo name(that small down-arrow)
  • there: projects > manage connections
  • rightclick your repo and delete it (could be you have to change to another one, otherwise you cant delete it while you have loaded it)
  • clone your repo back to where it was

after these steps i was able synch again

like image 43
Ryugeist Avatar answered Sep 20 '22 15:09

Ryugeist