[英]git: could not lock config file Permission denied & Invalid argument
I updated node modules and after that got like 5000+ changes that need commiting, when I try to commit, I get the errors, that file names are too long.我更新了节点模块,之后有 5000 多个需要提交的更改,当我尝试提交时,我收到错误,文件名太长。 Ok so I use the command to allow long file names on windows, but then I get this error.
好的,所以我使用该命令在 Windows 上允许长文件名,但随后出现此错误。 Ideas?
想法?
C:\wamp\www\site17>git config --system core.longpaths true
error: could not lock config file c:\program files\git\mingw64/etc/gitconfig: Pe
rmission denied
error: could not lock config file c:\program files\git\mingw64/etc/gitconfig: In
valid argument
I had the same issue regarding long file names.关于长文件名,我遇到了同样的问题。 I tried below commands and it sorted my issue.
我尝试了以下命令,它解决了我的问题。 Pleae try
git config core.longpaths true
and git add .
请尝试
git config core.longpaths true
和git add .
and then git commit
然后
git commit
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.