0
点赞
收藏
分享

微信扫一扫

repo sync 报错error: apps/xx/: branch master is published (but not merged) and is now N commits behind


在使用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

举报

相关推荐

0 条评论