其他分享
首页 > 其他分享> > IDEA无法pull代码到本地,Can't Update No tracked branch configured for branch master or the branch doesn

IDEA无法pull代码到本地,Can't Update No tracked branch configured for branch master or the branch doesn

作者:互联网

pull自己代码到本地时,死活pull不了,出现报错信息:

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 

原因:看网络很多都有解释,简单说就是不知道pull那个,但是我就一个项目分支,因为是个人项目,所以没做分支,就挺离谱的。

解决方案:

在项目目录下打开git窗口,输入

git branch --set-upstream-to=origin/master

附上参考的大佬原站:

IDEA新建项目提交到git仓库时报错:Can't Update No tracked branch configured for branch master or the branch
解决git更新时提示Can't Update No tracked branch configured for branch_u012556114

标签:pull,git,tracked,No,configured,master,branch
来源: https://www.cnblogs.com/1463490Ya/p/15773171.html