【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

 

posted @ 2019-03-18 10:09  阿狸哥哥  阅读(2231)  评论(0编辑  收藏  举报