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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-02-27
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-06-09
  • 2021-11-09
相关资源
相似解决方案