git中的错误

来源:互联网 发布:php 去掉数组中的空值 编辑:程序博客网 时间:2024/05/17 08:27

我在commit的时候没有加-m

然后再正常commit的时候机会报错

$ git commit -m "add merge"
fatal: Unable to create 'E:/wzp/hhhhh/.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.

这个时候可以
rm -rf ./.git/index.lock
然后就会正常了


0 0