无法在Windows上使用git克隆存储库

时间:2017-04-13 15:05:26

标签: windows git

我尝试使用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 / < / p>

Thanx任何想法。

1 个答案:

答案 0 :(得分:0)

升级到 git版本2.12.2.windows.2 为我解决了这个问题,因为这个错误最近才修复。