git add时出错,记录一下解决方法

来源:互联网 发布:baocms7.6源码下载 编辑:程序博客网 时间:2024/06/05 14:56

git add 错误修改方法

git add a.txt

报如下错误:

fatal: Unable to create 'E:/git/.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.

 

只需要删除E:/git/.git/index.lock 下的index.lock文件即可,

.git 是隐藏文件,设置隐藏文件显示即可。


出处:http://www.cnblogs.com/liuna/p/6084532.html

原创粉丝点击