-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git克隆或推送仓库时长路径报错的解决方法 #43
Comments
原来Linux上还存在硬编码的字符限制,不通用的解决方法就没有意义了,感谢告知 |
之前有两个提交,暂时删除了过长的目录,一个是白箱、一个是寒蝉,你那边把目录修改得短一点再重新添加一下。比如vcb的就总是很长,一般直接写成“vcb”大家也能看懂。 |
重新处理添加了,奇怪的是db.xml在github上的diff和本地显示的不一样,出现了大量改变项 |
Linux 文件名长度限制的单位是 bytes,实际可用 85 个 UTF-8 CJK 字符,但没有路径长度限制 Windows 则是没有文件名长度限制,路径长度限制 260 个 UTF-16 字符,1607 后为软限制 |
每次更新后,需要运行软件按F5更新db.xml |
由于操作系统对于长路径的字符限制会导致在git克隆或推送仓库时出现报错无法继续执行的问题,可以通过以下命令来解除git的长路径的限制:
git config --global core.longpaths true
Windows上还需要进一步执行以下命令:
git config --global core.protectNTFS false
The text was updated successfully, but these errors were encountered: