Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How come the git Pull button in Visual Studio is disabled?

enter image description here

it didn't happen before, but it happened to me today. What are the possible cause?

like image 621
Wiley Ng Avatar asked Mar 04 '26 09:03

Wiley Ng


2 Answers

Your branch may have an upstream tracking branch.

Try running "git status -sb" when you are on the branch in the command prompt- if it only shows "## <branch_name>" your local branch is not tracked. It would show "## master...origin/<branch_name>" if it were. In this case running "git branch -u origin/<branch_name>" in the command prompt should fix your issue.

like image 103
amateur Avatar answered Mar 07 '26 12:03

amateur


In my case I needed to perform for a particular branch that was only local and fulfilled above conditions (as per @amateur's answer) this command:

git push -u <remoteRepoName>

Then the local branch that was not pushable in Visual Studio menus (disabled Push button) started to appear as a standard branch. I do not know why this sometimes happens. But this solves the consequences.

like image 28
Honza P. Avatar answered Mar 07 '26 10:03

Honza P.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!