微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Windows 10 上的 gitconfigs 错误没有这样的文件或目录“退出状态 255

如何解决Windows 10 上的 gitconfigs 错误没有这样的文件或目录“退出状态 255

Git configss 自行关闭。当我尝试尝试使用 GitHub Desktop 时,它告诉我:

WARNING: error running C:\Users\${USERNAME}\AppData\Local\GitHubDesktop\app-2.6.3\resources\app\git\mingw64\bin\git.exe 'config' '--global' '--replace-all' 'filter.lfs.clean' 'git-lfs clean -- %f': 'error: Could not lock config file ${USERNAME}/.gitconfig: No such file or directory' 'exit status 255'
Run `git lfs install --force` to reset git config.

当我尝试通过 Windows 终端(cmd,管理员模式)执行建议时,它告诉我:

git lfs install --force
WARNING: error running C:\Program Files\Git\mingw64\libexec\git-core\git.exe 'config' '--global' '--replace-all' 'filter.lfs.process' 'git-lfs filter-process': 'error: Could not lock config file ${USERNAME}/.gitconfig: No such file or directory' 'exit status 255'
Run `git lfs install --force` to reset git config.

尝试彻底拆除 Git、GUI、清除缓存、手动在用户文件夹中创建 .gitconfig 文件,但无济于事。也许论坛上有人可以帮助您了解情况? XD

我使用的是最新版本的 Windows 10、GitHub Desktop 和 Git。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。