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

上一篇:判断回文串


下一篇:如何使用光盘构建yum仓库