首页 > 其他 > 详细

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

时间:2020-03-27 21:12:30      阅读:1368      评论:0      收藏:0      [点我收藏+]

写了一天代码,提交时报错。拉取也不行

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 (show balloon)

  

原因:

  Git 不知道你要pull远程的哪个分支. 如果此时使用命令行,输入 git pull 可以查看详细的错误提示为: There is no tracking information for the current branch.  

解决方法:

  提交代码到新仓库时报错,解决方法:

  Alt + F12 呼出Terminal,输入以下指令:

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

  

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

原文:https://www.cnblogs.com/xr210/p/12584126.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!