如何让myname.github.io成为GitHub个人网站的url?

How to have myname.github.io as url of a personal website on GitHub?

我想在 Github 上建立个人网站。我按照 this video 创建了一个包含文件 index.html.

的存储库

我在网上看到,为了获得此 html 页面的 url <myname>.github.io,您需要将存储库命名为 <myname>.github.io。但是当我这样做时,html 页面被发布到 <accountname>.github.io/<myname>.github.io。我是不是做错了什么?

来自https://pages.github.com

Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub.

If the first part of the repository doesn’t exactly match your username, it won’t work, so make sure to get it right.