error: refs/heads/gh-pages does not point to a valid object!fetch' '--update-head-ok'
error: refs/heads/gh-pages does not point to a valid object!/flipdazed/Hybrid-Monte-Carlo.git
自动呈现gh-pages格式的pull )。如果我还没有设置gh-pages分支,我可以进行分支,清除该分支,然后复制html目录的内容,然后,我已经准备好了一个站点。但我不确定以后如何更好地更新gh-pages分支。gitbranchgh-pages# Remove files I don't need from the gh-pagesbranch
r
要提交到gh-pages分支,我可以编写一个脚本,将存储库克隆到一个临时目录中,进行修改,提交它们,然后将它们推回到主存储库。但这听起来像是一个容易出错的过程,所以我希望有一种更简单的方法。main.txt$ git commit -m'Initial commit in main branch.'(-)$ gitsymbolic-refHEAD</em