最近提交代码遇到的一些问题,网上找的解决办法,免得忘记了,特此记录一下。
$ git checkout xxx
fatal: Unable to create 'xxxxx/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
解决办法
1、删除在同级目录下 .git 文件中的 index.lock 文件;(未使用)
2、或者直接在命令行输入 rm -f .git/index.lock(使用,有效)
原文出处:
版权声明:本文
————————————————
版权声明:本文为CSDN博主「今天好好优秀了么」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/hhhhhh5863/article/details/89210610