ruby - 如何让 GitHub 页面使用 master 分支?

标签 ruby git github jekyll

我有一个使用 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/

相关文章:

ruby - Ruby 的 AST 中的 'send' 关键字是什么意思?

ruby - 为什么 open ('uri' ).read 会删除响应数据?

ruby-on-rails - 通过 Rails 3 中的唯一列值选择所有列

git 同时推送到多个仓库

github - 为什么 git remote add 不起作用?

git checkout 在特定提交之前的版本

ruby-on-rails - 旧版本的 Rails 网站文档

Git 2.6.3 和 Visual Studio 2013/2015 集成

git - 为什么 git reset 和 push 在远程和分支名称之间使用斜杠和空格?

git - 如何在 pull 存储库后自动运行另一个应用程序?