没有这样的文件或目录-运行git add时 [英] No such file or directory - when running git add
本文介绍了没有这样的文件或目录-运行git add时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将把我的代码上传到github存储库并执行git add .
命令.我收到此错误,在这种情况下我不知道该怎么办.
I'm going to upload my code to the github repository and execute the git add .
command. I get this error and I do not know what to do in this case.
fatal: Unable to create '/Documents/GitHub/repo/.git/index.lock': No such file or directory
推荐答案
您是否检查了文件系统权限?您是否拥有对/Documents/GitHub/repo/.git的写权限?我假设您在此命令之前加上git init
.
Have you checked file system permissions? Do you have write privileges to /Documents/GitHub/repo/.git? I am assuming you preceded this command with git init
.
这篇关于没有这样的文件或目录-运行git add时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文