简体   繁体   English

git:无法锁定配置文件权限被拒绝和无效参数

[英]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 truegit add . and then git commit然后git commit

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 git错误“无法锁定配置文件.git / config权限被拒绝” - git error “could not lock config file .git/config permission denied” 错误的错误消息“无法锁定配置文件.git / config:权限被拒绝”,原因是未进行分阶段的更改; 在安装openJDK 8时在Homebrew中 - error of “could not lock config file .git/config: Permission denied” due to unstaged changes; in Homebrew while installing openJDK 8 错误:无法锁定配置文件 C:/Program Files/Git/mingw64/etc/gitconfig:权限被拒绝 - error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied 错误:无法锁定配置文件 C:/Program Files/Git/mingw64/etc/.gitconfig: Permission denied - error: could not lock config file C:/Program Files/Git/mingw64/etc/.gitconfig: Permission denied 错误:无法锁定配置文件 /etc/gitconfig:权限被拒绝 - error: could not lock config file /etc/gitconfig: Permission denied 错误:无法锁定配置文件.git/config:没有这样的文件或目录 - error: could not lock config file .git/config: No such file or directory .config/git/ignore':权限被拒绝 - .config/git/ignore': Permission denied 打开.git / config:权限被拒绝 - opening .git/config : Permission denied Git错误无法打开日志文件进行跟踪:权限被拒绝 - Git error could not open log file for tracing: Permission denied SVN到GIT存储库的迁移,错误:无法锁定配置/元数据文件 - SVN to GIT repositories migration, Error : could not lock the config / metadata file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM