Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the "Create Pull Request" menu item in Visual Studio 2015 always disabled?

No matter what I try, this menu item never seems to "enable":

enter image description here

What am I missing? This is in VS 2015 Update1 pointed at a Git repo on TFS 2015.

like image 453
Keith Hill Avatar asked Jan 07 '16 20:01

Keith Hill


People also ask

How do I enable a pull request?

To accept the pull request, click the Pull Requests tab to see a summary of pending pull requests. If you are happy with the changes, click Merge Pull request to accept the pull request and perform the merge. You can add in a comment if you want. Once you click Merge Pull request, you will see a button Confirm merge.

Where is the Create pull request button?

Creating a Pull Request To create a pull request, you must have changes committed to the your new branch. Go to the repository page on github. And click on "Pull Request" button in the repo header.

How do I Create a pull request code in Visual Studio Git?

VS Code allows you to do Pull Requests directly from the editor. To do that you need to be on the GitHub Pull Request page. Click on the create new pull request button. Then choose a target branch to which you want to pull, and from which you want to pull.


1 Answers

In my case my local git repository was not "associated" with TFS.

This post helped me discover the solution.

In Team Explorer go to "Manage Connections" -> "Connect to Team Project" which will open this window. From here check the team project that the git repository should be associated with.

enter image description here

After doing so the team project should now show up in the Team Explorer. Right click "Connect" on the newly added team project.

enter image description here

like image 92
SkipHarris Avatar answered Oct 03 '22 20:10

SkipHarris