当我尝试将项目树移至git repo时,我仍然收到此错误消息。
我检查了此项目的目录权限,这些权限设置在777上。在终端中,my_project
我设置了以下权限:
git初始化
然后,如果我尝试
git添加
要么
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.
我试过也创建一个新的仓库,并提交它,但是不幸的是仍然是同样的错误信息。
问题原因是什么?