Search code examples
githuburljekyllgithub-pages

GitHub pages URL pointing to GitHub username instead the repository name


This GitHub pages application is written in Jekyll. I want it to go live from https://indrajith.github.io. But it goes live from a different domain and starts with my GitHub profile username.

enter image description here

I referred GitHub pages documentation for this but in all the examples I followed, they give the profile name to the repository name.

Ex: If the profile name is x repository name is x.github.io

Can't we give a different name for the repository?

Ex: If the profile name is x repository name is x12.github.io


Solution

  • You cannot use indrajith.github.io because indrajith is likely another GitHub user's name. So you cannot use other than your <github user>.github.io.

    If you want to server your pages from https://indrajith.github.io, you have to rename your user name to indrajith if the username is available.

    REF: Changing your GitHub username