【发布时间】:2017-09-09 18:48:31
【问题描述】:
我尝试使用 git.exe 在 Windows 7 机器上签出存储库:
C:/tmp>git --version
git version 2.12.0.windows.1
C:/tmp>git clone https://someuser@bitbucket.org/somcomp/someproj.git
Cloning into 'somproj'...
remote: Counting objects: 11762, done.
remote: Compressing objects: 100% (7028/7028), done.
Receiving objects: 100% (11762/11762), 48.36 MiB | 1.30 MiB/s, done.
remote: Total 11762 (delta 5706), reused 10135 (delta 4230)
Resolving deltas: 100% (5706/5706), done.
fatal: cannot create directory at 'someproj/node_modules/console-stamp/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules': No such file or directory
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'
C:\tmp>git status
fatal: Not a git repository (or any of the parent directories): .git
我可以在这里做什么?我尝试了 git config --system core.longpaths true 建议,但没有帮助。还有其他食谱吗?如果我在 bitbucket 中查看失败的文件夹并且只有一个子文件夹,则失败的文件夹似乎不包含任何丑陋的字符:
node_modules / console-stamp / node_modules / dateformat / node_modules / meow / node_modules / normalize-package-data / node_modules / validate-npm-package-license / node_modules / spdx-correct / node_modules / spdx-license-ids /
感谢任何想法。
【问题讨论】:
-
里面有没有同名但大小写不同的文件?
-
@MichaelBurr,不,我没有看到这种冲突
-
文件夹或文件名是否以空格结尾或开头?
-
我在 bitbucket 中没有看到任何这些。
-
像 ProcMon 这样的东西可能有助于调试这个。