首页 > 解决方案 > 将页面添加到 Github 页面

问题描述

我有一个网址如mywebsite.github.io. 我想创建mywebsite.github.io/robots.txt.

我知道这可以通过设置一个新的存储库并添加 gh-pages 分支来完成,但是我怎样才能从我的主存储库中做到这一点?

标签: githubgithub-pages

解决方案


当你创建你的 Github 页面时,它用它的内容创建了一个新的 repo。

它将被称为 .github.io,其中是...您的用户名。

在那里添加文件。

https://guides.github.com/features/pages/


推荐阅读