I am aware that on GitHub you can create a repository, <username>.github.io
, which will be a personal website. I also understand you can link custom domains to this, so example.com
would show the website in your GitHub repo.
I have a couple questions though.
At the moment, I have a GitHub project - let's call it FooProject
. I have purchased a custom domain name for a website to showcase the project. How can I create a website for this, hosted on GitHub? (not a personal site in the form <username>.github.io
, but a project site).
Also, can I give the GitHub repository a different name like fooproject.com
, or does it something specific?
I suppose what I am really asking is, when hosting a website on GitHub...
Can you host your website using a GitHub repository of any name (like
fooproject.com
)?If not, I'm aware of using
gh-pages
branches for the website of a project. How would this work with a custom domain?If that isn't a good option either, what's the best option for my use case?
Hope that's clear.