git - 尝试将存储库克隆到其中包含 'aux' 目录的 Windows 7

标签 git windows-7

尝试克隆 git 存储库时 - jpeginfo特别是 - 发生错误,

Cloning into 'jpeginfo'...
remote: Counting objects: 182, done.
remote: Total 182 (delta 0), reused 0 (delta 0), pack-reused 182R
Receiving objects: 100% (182/182), 115.71 KiB | 140.00 KiB/s, done.
Resolving deltas: 100% (99/99), done.
Checking connectivity... done.
fatal: cannot create directory at 'aux': Invalid argument
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'

显然,目录的“aux”名称是 Windows 系统上的保留名称。我不知道如何进行?

尝试在 cygwin 和 mingw 下克隆它,结果相同。

有没有人知道什么是最简单的方法,首先是克隆上述 jpeginfo 存储库,其次是在 Windows 下构建它?

最佳答案

除非项目更改该文件夹的名称 ( as others did ),一种解决方案是 install docker , 和 clone the repo in a container .

考虑到 jpeginfo 仅在 Unix 平台(Linux、OS X(雪豹)、Solaris、IRIX 和 HP-UX)上进行测试,该容器也将是正确的构建环境。

关于git - 尝试将存储库克隆到其中包含 'aux' 目录的 Windows 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32296251/

相关文章:

git:如何防止从上游 repo 中获取标签?

Git:权限被拒绝(公钥)致命 - 无法从远程存储库读取。在克隆 Git 存储库时

java - 带有 SWT.VIRTUAL 的 SWT 表引发 StackOverflowError

windows-7 - 在 "Extend these displays"和 "Show desktop only on 1"之间切换

ios - 当我在 Xcode 5 中使用工作区时,为什么源代码管理不起作用?

Gitolite git克隆错误

git - 有没有办法运行 `git cherry-pick` 并指定特定于给定分支的一系列提交?

python - python 多处理函数返回多个输出

windows - Windows 7 中丢弃的 CALL 批处理文件环境变量

ruby-on-rails - 如何在 Windows 7 上的 Rails 3 应用程序中使用 "mysql2"gem?