sh 适用于Windows的Git:文件名太长

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 适用于Windows的Git:文件名太长相关的知识,希望对你有一定的参考价值。

$ git clone ssh://git@some-git-repo
Cloning into 'SOME_GIT_REPO'...
remote: Counting objects: 16307, done.
remote: Compressing objects: 100% (6522/6522), done.
remote: Total 16307 (delta 12659), reused 12167 (delta 9480)
Receiving objects: 100% (16307/16307), 3.99 MiB | 1.21 MiB/s, done.
Resolving deltas: 100% (12659/12659), done.
error: unable to create file src/app/custom-components/main-application-components/ke-profile-management/assign-restrictions-and-limitations/assign-restrictions-limitations-main-screen/assign-restrictions-limitations-main-screen.component.html: Filename too long
error: unable to create file src/app/custom-components/main-application-components/ke-profile-management/assign-restrictions-and-limitations/assign-restrictions-limitations-main-screen/assign-restrictions-limitations-main-screen.component.spec.ts: Filename too long
Checking out files: 100% (342/342), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

# This command only applies `longpaths` to the current project
$ git config core.longpaths true
$ git checkout -f HEAD

以上是关于sh 适用于Windows的Git:文件名太长的主要内容,如果未能解决你的问题,请参考以下文章

适用于 Windows 的 PhpStorm 和 Github

sh 适用于Mac的gitの特定コミット间の差分をzipで出力するやつ

使用标准 C 库将文件读取到内存 - Windows 过早识别 EOF 但适用于 Mac、Linux

如何禁用适用于 Windows 的 Git 凭据管理器?

Git:使用适用于 Windows 的 GitHub 客户端在 PATH 中安装 Git

如何使用适用于 Windows 的 Git 更改 Git Bash 中的目录?