我真的很困惑.我是一个狂热的github用户,从来没有遇到过任何问题.但是,在检查我刚刚使用repo travis-ci/travis-core的fork时,无论是使用https还是ssh,我在tortisegit完成下载git repo之后但在第一次检查之前遇到了这个bug.任何可能导致这种情况的事情?谢谢您的帮助!
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'
mockinterfac.. 7
该文件travis-ci?per_page=100.json
在Windows上不是有效的文件名.你可以看到repo中有这样的实际文件,比如repos?per_page = 9999.json
您可以在cygwin上克隆此repo(这样的文件名在cygwin shell中有效),手动删除有问题的文件,或者通过过滤分支,git filter-branch --subdirectory-filter
然后继续将fork放回github.
该文件travis-ci?per_page=100.json
在Windows上不是有效的文件名.你可以看到repo中有这样的实际文件,比如repos?per_page = 9999.json
您可以在cygwin上克隆此repo(这样的文件名在cygwin shell中有效),手动删除有问题的文件,或者通过过滤分支,git filter-branch --subdirectory-filter
然后继续将fork放回github.