【IDEA】 Can't Update No tracked branch configured for branch master or the branch doesn't exist. To make your branch track a remote branch call, for example, git branch --set-upstream-to origin/master

IDEA点击GIT更新按钮时,报错如下:

Can't Update
No tracked branch configured for branch master or the branch doesn't exist. To make your branch track a remote branch call, for example, git branch --set-upstream-to origin/master master

解决办法:

 在IDEA的Terminal中,执行如下命令即可解决问题:

git branch --set-upstream master origin/master

猜你喜欢

转载自www.cnblogs.com/aligege/p/10550580.html