IDEA新建项目提交到git仓库时报错:Can't Update No tracked branch configured for branch master or the branch...
Posted xr210
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEA新建项目提交到git仓库时报错:Can't Update No tracked branch configured for branch master or the branch...相关的知识,希望对你有一定的参考价值。
写了一天代码,提交时报错。拉取也不行
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...的主要内容,如果未能解决你的问题,请参考以下文章
IDEA 启动项目时报错:Error running tomcat Can‘t find catalina.jar解决办法