我正在尝试克隆回购并收到错误:
Cloning into '****'...
remote: Counting objects: 5125, done.
remote: Compressing objects: 100% (3969/3969), done.
remote: Total 5125 (delta 1006), reused 4569 (delta 761)
Receiving objects: 100% (5125/5125), 5.07 MiB | 7.87 MiB/s, done.
Resolving deltas: 100% (1006/1006), done.
Checking connectivity... done.
warning: unable to access '***-frontend/node/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodas
h.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/.gitattributes': Filename too long
fatal: cannot create directory at '****-frontend/node/node_modules/package/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_m
odules/lodash.padleft/node_modules/lodash._createpadding/node_modules/lodash.repeat': Filename too long
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'
问题是为什么我会收到此错误以及如何避免错误?另外,当我运行git status时,所有文件都显示为标记为DELETED?
当我运行git checkout -f HEAD时,我得到:
warning: unable to access '****-frontend/node/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodas
h.padright/node_modules/lodash._createpadding/node_modules/lodash.repeat/.gitattributes': Filename too long