2013-12-21 99 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上。