VS 2017 Team Explorer GIT "Push Branch" Grayed out

Viewed 5986

VS 2017 Team Explorer GIT "Push Branch" is Grayed out for me. I create a new local branch from a remote branch with no tracking and then I try to create a remote branch with the same name as the local branch by clicking on "Push Branch". Why would this option be grayed out for me?

3 Answers

I place it here, as someone like me will search again for that, I have resolved by doing branch Rebase. Commit your changes before. And then:

Rebase window

Result

Probably it happens after you have manipulated remote repository settings.

In another case i just deleted all origins and created them again

enter image description here

Another addition. Be sure that you always has remote with "origin" name, that's another problem I faced right now, during migration of my projects.

Rename one of your remotes to "origin" with this command:

git remote rename your-remote-name-goes-here origin

Then you should be able to Push, Pull, and Fetch in Visual Studio. These options will no longer be grayed out.

Related