title: Git url mapping to custom domain
body: <p>How to map github url to custom domain?</p>
  
  <p>Example:</p>
  
  <p>I saw below url mapping</p>
  
  <blockquote>
    <p>go get github.com/goji/goji</p>
  </blockquote>
  
  <p>to this url?</p>
  
  <blockquote>
    <p>go get goji.io</p>
  </blockquote>
  
  <p>Do they host a replica or DNS redirection?</p>
  
  <p>In golang, we import repositories using url path. If we use a custom domain,
  we need not rewrite import paths when we change repository hosting, say from github.com to bitbucket or vice-versa</p>
  
  <p>So how to implement this?</p>