我是靠谱客的博主 彪壮果汁,最近开发中收集的这篇文章主要介绍error: prior sync failed; rebase still in progress fatal: Unable to create .git/index.lock File exis,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

执行repo sync -j8的时候,遇到代码同步错误

error: frameworks/base/: prior sync failed; rebase still in progress
error: Cannot checkout platform/frameworks/base
fatal: Unable to create .git/index.lock File exists.

使用命令无法修复

repo sync -j1 --fail-fast

参考网上删除无法解决

rm frameworks/base/.git/index.lock

最终的解决方法,去出错的目录下,git am --abort:

:/mnt/fileroot/tmp/frameworks/base$ git status .
HEAD detached at 1d9b9ab57d84
You are in the middle of an am session.
  (fix conflicts and then run "git am --continue")
  (use "git am --skip" to skip this patch)
  (use "git am --abort" to restore the original branch)

nothing to commit, working tree clean
:/mnt/fileroot/tmp/frameworks/base$ git am --abort

最后

以上就是彪壮果汁为你收集整理的error: prior sync failed; rebase still in progress fatal: Unable to create .git/index.lock File exis的全部内容,希望文章能够帮你解决error: prior sync failed; rebase still in progress fatal: Unable to create .git/index.lock File exis所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(72)

评论列表共有 0 条评论

立即
投稿
返回
顶部