git 提交代码失败 Make sure no other git process is running and remove the file manually to continue.

悠悠 2021-10-18 18:28 487阅读 0赞

在提交的代码的时候突然失败了,报错的信息是这样的

$ git commit -a
fatal: Unable to create ‘e:/git/Android/XXXXXX/.git/index.lock’: File e
xists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

给你们翻译一下

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjExNDA5Nw_size_16_color_FFFFFF_t_70

以前没有遇到过,这里记录一下,大家有遇到可以尝试一下

到项目的文件中

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjExNDA5Nw_size_16_color_FFFFFF_t_70 1

会有一个 Git的文件夹,到这里找一个index.lock 删除即可

发表评论

表情:
评论列表 (有 0 条评论,487人围观)

还没有评论,来说两句吧...

相关阅读