Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the URL for a GitHub Pages site?

Tags:

github-pages

According to the GitHub Pages official doc, if I create a repo named <username>.github.io, I will get a site at the URL https://<user_name>.github.io.

But as I tried, it seems I can create a repo of any name. And what I get is a site at the URL https://<user_name>.github.io/<repo_name>.

Is the doc outdated? And what's the real situation now?

Thanks.

like image 705
smwikipedia Avatar asked Dec 06 '25 03:12

smwikipedia


1 Answers

Actually there are two types of github page sites.
One is for org/user. But you can setup for a repo too:

enter image description here

Maybe the quickstart only shows one of the ways but as seen in docs, you can also setup project sites.

like image 170
Tushar Shahi Avatar answered Dec 09 '25 17:12

Tushar Shahi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!