30
votes

I'm using VSTS and Visual Studio enterprise on two different machines (both VS2015U3 on Win10). The project has a git-repository. On one machine I do have all expected menu's (https://www.visualstudio.com/en-us/docs/connect/work-team-explorer ) on the other some (pull requests, work items) are missing. On both machines editing code and commiting/synching works fine.

Any suggestions ?

5
can you check [ ] Add to source control when you create a new project? - McNets
The project IS in sourcecontrol (git on VSTS) and commiting, push, synch is working as expected. Only some menu's i.e. work items and pull requests are missing on one of my machines. - BrilBroeder

5 Answers

82
votes

The reason is that you just connect to the local git repository and it likes this: enter image description here

You configured Remotes (Home=>Settings=>Repository Settings=>Remotes), so you can commit and sync.

Refer to these steps to connect to the remote repository.

  1. Go to Team Explorer
  2. Click Manage connections=>Connect to Team project enter image description here
  3. After that Open Solution in Solutions section (if it is empty, you need to clone this repository) enter image description here
10
votes

I had the same issue. It was resolved by re-connecting to the tfs-server. on VS 2017 Team Explorer go to 'Manage Connections' and 'Add Server'.

4
votes

Steps using VS (Visual Studio) 2019:

  1. Manage Connections > Connect to a Project...
  2. Expand server, and project to find the repo you want, then
  3. If it is already cloned, "Connect" should be the default option - click it!

And why Microsoft doesn't just auto-magically do this bewilders me! I could sync and all, but no Pull-request until I jump through this little connect to the server/project/repo steps..

3
votes

This happened to me after I upgraded Visual Studio 2017 to 15.6.2. I was able to push my changed to the server, commit, sync, etc. but for some reason when I tried to make a Pull Request, that option was not listed in Team Explorer. I searched and found this solution to help out. Still unsure why I could push/sync, but could not do a pull request since it said I was not connected to the TFS server.

Once I reconnected, the Pull Request option re-appeared and I could make my Pull Request. Hope this help others.

0
votes

I had the same issue. I was not able to create a Pull Request from Visual Studio. This started happening when I changed my computer password. The solution is that you connect again with your project.