Git无法从github查看回购

 消瘦了一生 发布于 2023-02-08 18:30

我真的很困惑.我是一个狂热的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.

1 个回答
  • 该文件travis-ci?per_page=100.json在Windows上不是有效的文件名.你可以看到repo中有这样的实际文件,比如repos?per_page = 9999.json

    您可以在cygwin上克隆此repo(这样的文件名在cygwin shell中有效),手动删除有问题的文件,或者通过过滤分支,git filter-branch --subdirectory-filter然后继续将fork放回github.

    2023-02-08 18:31 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有