Why is the git pull for VS2017 not available?

my VS2017 has several git repositories, but all of them can only be pushed but not pulled, as shown in the figure

. The

[pull] button is always grayed out. I have tried to change the base or merge with the remote branch, but it doesn"t work. Why and how can I make the pull available? Thank you.


I think I know the answer: you need to establish a tracking between the local branch and the remote branch, specifically:

  • enter in VS2017 > tools menu > Nuget package Manager > package Manager console
  • execute in the console: git branch-u remote location / remote branch name local branch name , immediately
Menu