Visual Studio Team Explorer + VS Online Sync

I use VS Online + Git for version control, and everything went fine until recently, when I reinstalled windows and installed VS 2015. I opened VS and selected the Open from source control option and connected to my VS online account, but when I I tried to clone the project on my computer, I got an error:

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

I tried several things (mostly by accident, because I could not find anything useful in this error), and nothing helped.

Then I opened Git bash and manually cloned the project on my computer and without any problems. After that I opened the project in VS and made some changes, fixed the dose changes locally without any problems, but when I tried to synchronize my project, I got the same error again. Again, pushing the code to the server from Git bash passed without problems.

I also tried to clone the project from another online VS account via VS + Team Explorer, and that was good.

Could you help me?

+8
git version-control visual-studio-2015 vsts team-explorer
source share
3 answers

To solve this problem, I had to exit Team Foundation Server. In VS 2015, on the Team tab, select Disconnect from Team Foundation Server. You can close VS and restart it if you choose, but I don't think it matters. When VS returns, go to the "Team" tab again and select "Manage Connections", then click on the "Manage Connections" link, and then follow the steps to enter.

+2
source share

The same problem was discovered only now - after some google-fu did not change anything. But then I tried the following steps, and it worked (press manually before doing this or somewhere safe):

  • close decision
  • delete the whole directory where your repo is located.
  • (in the Team Explorer view) clicked on the repo name (this little down arrow)
  • there: projects> manage connections
  • rightclick your repo and delete it (maybe you need to switch to another one, otherwise you won’t be able to delete it while you downloaded it).
  • cloning your repo back to where it was

after these steps i was able to sync again

+1
source share

I had a similar problem, and I managed to resolve it by going to Team Explorer β†’ Manage Connections β†’ Connect to Team Project β†’ Servers and delete all my TFS servers. In addition, I had to log out with all my accounts from Visual Studio, restart VS and login again and connect to GIT.

In the end, I added my TFS servers.

0
source share

All Articles