github 个页面的自定义子域

Custom subdomain for github pages

我想托管一个有 github 个页面的网站,据我所知,我网站的域名是 myusername.github.io,但是如果我想要 custom.github.io 这样的东西,我需要怎么办创建另一个 github 帐户?或者我可以在不购买自定义域的情况下更改它?

您不需要为此创建另一个帐户,您可以直接将存储库的名称更改为 custom.github.io 而不是 repository
As:如果您的存储库名称是 example,那么您的网站托管在 myusername.github.io/example,但如果您希望网站托管在 custom.github.io 而不是 myusername.github.io/example,那么键入整个自定义存储库 link,即在存储库名称中输入 custom.github.io 而不是 example,然后您的站点将托管在 custom.github.io(如果可用)。