2013-12-21 48 views
0

我对此非常困惑。我是一个狂热的github用户,从来没有遇到过任何问题。但是,在检查我刚刚制作的repo travis-ci/travis-core的分支时,不管是使用https还是ssh,我都会在tortisegit完成下载git repo之后但在第一次检查之前遇到此错误。任何可能导致这种情况的事情?谢谢您的帮助!Git无法从github检出回购

remote: Counting objects: 29130, done. 
remote: Compressing objects: 100% (16427/16427), done. 
Receiving objects: 100% (29130/29130), 8.37 MiB | 265.00 KiB/s, done. 
Resolving deltas: 100% (13171/13171), done. 
remote: Total 29130 (delta 13171), reused 27543 (delta 11662) 
error: unable to create file spec/fixtures/github/api.github.com/orgs/travis-ci?per_page=100.json (Invalid argument) 
error: unable to create file spec/fixtures/github/api.github.com/users/svenfuchs?per_page=100.json (Invalid argument) 
fatal: unable to checkout working tree 
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' 

回答

6

文件travis-ci?per_page=100.json在Windows上不是有效的文件名。 你可以看到,有在回购命名这样实际的文件,例如:repos?per_page=9999.json

你也许可以克隆该cygwin的这个回购(如文件名会在cygwin外壳有效),删除有问题的文件,手动或通过用git filter-branch --subdirectory-filter筛选分支,然后继续将分叉放回github上。