When cloning git repo under Windows I get “error: unable to create file <file>… (Is a directory)”

爱⌒轻易说出口 提交于 2019-12-05 16:05:58

I think the trouble is this file here in you repo: https://github.com/kennethreitz/httpbin/blob/master/httpbin/templates/...

... is not a valid filename under windows

In order to get the repo, clone without checking out files (with -n flag):

git clone -n git://repo

Then you could use a sparse-checkout to get all file but ..., or you could only git checkout file you actually need.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!