我有一个使用 Jekyll 托管在 GitHub 上的静态网站。问题是,我真的不需要 master 分支,因为存储库唯一包含的是网站。
这样我就必须 git checkout gh-pages
,然后 git merge master
,然后 git push origin gh-pages
。
有什么简单的方法可以摆脱 gh-pages
分支并直接从 master
推送?
最佳答案
The problem is, I don't really need the master branch, as the only thing the repository contains is the website.
Is there any simple way, where I could get rid of the gh-pages branch and push directly from master?
用你自己的话说,你不需要master。删除它。在 gh-pages 中工作。
关于ruby - 如何让 GitHub 页面使用 master 分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8372973/