You will need a domain name from a registrar.
In the gh-pages branch of your project repository, or the main branch of your username.github.io repository, create a CNAME file with the contents www.yourdomain.com - the canonical domain.
At your registrar's domain configuration page, point your doma...