![](/img/trans.png)
[英]“no address associated with name” error when cloning github.com's repo under Windows using ssh
[英]When cloning git repo under Windows I get “error: unable to create file <file>… (Is a directory)”
Z:\>git clone git://github.com/kennethreitz/httpbin.git
Cloning into 'httpbin'...
remote: Counting objects: 1073, done.
remote: Compressing objects: 100% (401/401), done.
remote: Total 1073 (delta 672), reused 1045 (delta 651)
Receiving objects: 100% (1073/1073), 114.42 KiB | 128 KiB/s, done.
Resolving deltas: 100% (672/672), done.
error: unable to create file httpbin/templates/... (Is a directory)
git版本1.8.0.msysgit.0,Windows Vista SP2 x64
怎么了?
我认为麻烦就是这个文件在你的回购: https : //github.com/kennethreitz/httpbin/blob/master/httpbin/templates/ ...
...
在Windows下不是有效的文件名
为了获得repo,克隆时不检出文件(使用-n
标志):
git clone -n git://repo
然后你可以使用sparse-checkout
来获取所有文件但是...
,或者你只能git checkout
你实际需要的git checkout
文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.