赞
踩
在git上传到远程仓库的时候会出现这种报错
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.
这种情况可能是因为在之前上传的时候文件发生了崩溃,部分被上锁资源没有被释放
在当前文件夹根目录下找到.git文件夹(如果看不到可以点击左上角查看,把隐藏的项目打上钩)
进去文件夹后可以看到index.lock文件 删除再重新git一遍即可
在终端执行 git rm .git/index.lock
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。