【发布时间】:2012-04-28 19:17:46
【问题描述】:
我已经下载了带有 repo 的 Android 源代码,然后我在 frameworks/base/packages 中进行了一些更改。现在,当我尝试进行 repo 同步时,它给了我这个错误:
同步工作树:60% (151/251) 错误:您对 'packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java'; 无法切换分支。
如何修复并升级所有没有变化的项目?
【问题讨论】:
-
您可以在 frameworks/base 中执行“git stash”和“git stash apply”。
-
使用 repo 工具,我得到
fatal: Not a git repository (or any of the parent directories): .git,因为没有 .git 目录。只是一个 .repo 目录。 -
嗨,遇到同样的错误。任何评论
标签: android git repository android-source cyanogenmod