当我尝试将项目树移动到git repo时,我仍然收到此错误消息.
我用这个项目检查了我的目录的权限,这些是在777上设置的.在my_project我设置的目录中的终端:
git init
如果我试试
git add.
要么
git commit -m"首次上传"
所以我会得到错误
fatal: Unable to create '/path/my_proj/.git/index.lock': File exists.
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.
Run Code Online (Sandbox Code Playgroud)
我也尝试创建一个新的repo并在那里提交它,但遗憾的是仍然是同样的错误信息......我已经有点绝望了,我试着找到整个下午的解决方案,但仍然没有成功...
请问有谁帮助我,问题的原因是什么?
百万次谢谢!
git ×1