无法更新:无追踪分支 [英] Can't update: no tracked branch
问题描述
我在Windows上的Android Studio(Preview)0.6.0上试图在GitHub上共享我的项目。我使用Git Shell来初始化,添加,提交并将项目推送到GitHub。但是,当我试图从Android Studio内更新我的项目,我得到这个错误:
无法更新:无追踪分支
未为分支主控配置追踪分支。
让分支跟踪一个远程分支调用,例如
git branch --set-upstream master origin / master
它确实提供了这个建议,但我不知道现在要做什么。有没有办法解决这个从Android Studio?
所以读了一下后,如何设置回购协议。我意识到我已经运行了命令:
$ b $ pre $ git push origin master
但是第一次我应该跑了
git push -u起源大师
最初设置上游。路要走!
I am on Android Studio (Preview) 0.6.0 on Windows and was trying to share my project on GitHub. I used Git Shell to initialize, add, commit and push the project to GitHub. But when I tried to update my project from within Android Studio , I got this error:
Can't update: no tracked branch
No tracked branch configured for branch master.
To make your branch track a remote branch call, for example,
git branch --set-upstream master origin/master
It does provide this suggestion but I am not sure what to do at this point. Is there a way to fix this from within Android Studio?
So after reading a bit on how git sets up the repo. I realized that I ran the command
git push origin master
but instead for the first time I should have ran
git push -u origin master
which sets up the upstream initially. Way to go!
这篇关于无法更新:无追踪分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!