C/C++教程

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

这篇关于IDEA无法pull代码到本地,Can't Update No tracked branch configured for branch master or the branch doesn的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!