当我通过 GitHub Desktop 克隆我的存储库时,它会抛出错误,指出有一个文件名称太长,我知道文件限制是 255,我从 regedit 和策略编辑器禁用了它,但问题仍然发生,我不知道该怎么办
对于任何想知道如何解决这个问题的人,我找到了一种方法! 转到 GitHub 桌面文件夹 -> app -> resources -> app -> git -> mingw64 -> etc -> gitconfig ,然后在 [core] 部分下添加此字段“longpaths = true”:)
转到 GitHub 桌面文件夹 -> 应用程序 -> 资源 -> 应用程序 -> git -> 等 -> gitconfig
在 [core] 部分下添加此字段“longpaths = true”
对于我的情况:
路径是:
C:\Users\username\AppData\Local\GitHubDesktop\app-3.0.7\resources\app\git\etc
更新文件(gitconfig)格式:
[core]
symlinks = false
autocrlf = true
fscache = true
longpaths = true