Using CNAME
To use your own domain name for accessing Bitbucket (e.g. hg.example.com), you can set up a CNAME.
To set up a CNAME, you must have access to the DNS of your domain name. The actual steps to do this will vary depending on the DNS provider you use. In your domain control panel or configuration, set up the domain name you want as a CNAME pointing to bitbucket.org. For example, you might set up hg.example.com as a CNAME to bitbucket.org.
Then, enter this domain name in your Bitbucket account settings, and once the DNS change has propagated across the Internet, your new CNAME will be in effect!
