更新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好用些,英语就是鹰语。