Create a public repository named pages
to make the site available at the main subdomain.
You can also create a branch pages
in an existing repository:
git switch --orphan pages
# In case if ignored files exist
git rm --cached -r .
Push your static content, HTML, style, fonts, images or anything else.
Access your new website using this link:
https://USERNAME.gitnet.page[/REPOSITORY][/@BRANCH]
To use a custom domain, create a file .domains
in your repository with the domain name you wish to use.
Then, add a DNS record for that domain:
CNAME [[branch.]repo.]user.gitnet.page.
For apex domains where CNAME doesn't work:
ALIAS gitnet.page. TXT [[branch.]repo.]user.gitnet.page
If ALIAS isn't supported:
A 193.70.112.230 TXT [[branch.]repo.]user.gitnet.page