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