git:branch is published (but not merged) and is now 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 就没有问题了


版权声明:本文为gracioushe原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。