Git 由于pathspec,ReadTheDocs生成失败

Git 由于pathspec,ReadTheDocs生成失败,git,python-sphinx,read-the-docs,Git,Python Sphinx,Read The Docs,我正在尝试创建一个sphinx文档,并使用ReadTheDocs将其联机,但是在执行以下操作后,我的构建中突然出现以下错误: Read the Docs build information Build id: 12647743 Project: documentationseries Version: latest Commit: None Date: 2020-12-28T11:42:02.102474Z State: finished Success: False [rtd-comman

我正在尝试创建一个
sphinx
文档,并使用ReadTheDocs将其联机,但是在执行以下操作后,我的构建中突然出现以下错误:

Read the Docs build information
Build id: 12647743
Project: documentationseries
Version: latest
Commit: None
Date: 2020-12-28T11:42:02.102474Z
State: finished
Success: False


[rtd-command-info] start-time: 2020-12-28T11:43:48.024647Z, end-time: 2020-12-28T11:43:48.412733Z, duration: 0, exit-code: 0
git clone --no-single-branch --depth 50 https://github.com/guilhermetheis/documentationSeries.git .
Cloning into '.'...

[rtd-command-info] start-time: 2020-12-28T11:43:48.872904Z, end-time: 2020-12-28T11:43:48.949867Z, duration: 0, exit-code: 1
git checkout --force master
error: pathspec 'master' did not match any file(s) known to git.
我还添加了
.readthedocs.yml
。我有一个
gitinore
,它将
build/
设置为忽略,但据我所知,
build
文件夹包含所需的HTML代码,因此这被删除。我还没有在
rst
方面做任何更改。其想法是让它上线,然后添加以消除调试过程中的任何一层复杂性。我真的不明白为什么会发生这种情况(而且我对编程非常陌生/不擅长),所以如果可能的话,我恳请您进行深入的解释


回购协议没有主分支,因此您显然无法签出,
--force
或no
--force

相反,回购协议使用
main
作为唯一分支机构的名称,您可以通过访问自己提供的链接轻松发现这一点


(这是重大更名的一部分;许多项目过去使用了
master
,但现在已经开始迁移到不同的术语。另请参见)

谢谢,我不知道它们迁移了。我现在面临另一个问题,但应该与sphinx/python相关,因此我需要创建一个新线程;每个问题一个问题!我也遇到了同样的问题,应该已经解决了。更改允许您将
default\u brarch
设置为其他内容,但您仍然需要设置它;是你干的吗?