首页 > 编程知识 正文

eplice更新代码库报错,git更新代码是那个

时间:2023-05-03 20:30:13 阅读:239722 作者:92

更新intellij中的代码(ctrl+t),发现报错如下:

17:17:27 Can't update: no tracked branch          No tracked branch configured for branch media-promotion20160622.          To make your branch track a remote branch call, for example,          git branch --set-upstream media-promotion20160622 origin/media-promotion20160622 (show balloon)

其实提示中已经告诉我们解决方法了, for example,这就是答案。

查了查原因:http://stackoverflow.com/questions/24215032/cant-update-no-tracked-branch

Using your command line, you can try
git checkout mybranch git branch --set-upstream-to=origin/mybranch That will configure something as an equivalent of your local branch in the server. I'll bet that Android Studio is complaining about the lack of that.
If someone knows how to do this using the GUI of that IDE, that would be interesting to read. :)
就可以更新了.
总结:     1 出错后认真读报错的提示,这是我们追本溯源的开始,往往他告诉了我们错误所在     2 抽取出关键字,一般的操作命令可以百度,但是错误查找还是google好用些,英语就是鹰语。



版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。