Problem with switching git path and selecting branch in the 2020 version of idea: The branch to pull from should be selected.

After switching the git path, the branch will also change accordingly, so the branch on the previous server cannot be used, but the idea still displays the branch on the previous server.

 

 So the solution is to execute on the console: git remote update origin --prune and it will be solved

 

Guess you like

Origin blog.csdn.net/qq_50158494/article/details/120968788