在使用repo sync 的时候, 以时候会出现以上错误的时候, 使用:
git branch -r
获得upstream的分支信息: m/gingerbread -> umg/kernel/2.6.35.3/stable
然后使用
git rebase m/gingerbread -> umg/kernel/2.6.35.3/stable
将发前分支变基到与upstream同步,以后再用repo sync 就没有问题了
如果出现新的问题:
error:apps/XXX/:prior sync failed; rebase still in progress
进入apps/XXX目录下git branch -r 查看
删掉apps/XXX/.git/rebase-apply
找到冲突文件,解决冲突,同步正常 repo sync -c