Keep the website under your control.
GitHub is a place to keep project files and a history of changes. It is not automatically your domain registrar or live website host.
First repository checklist
- Create a GitHub account you control and turn on two-factor authentication.
- Create a new private repository for unfinished website work, with a README explaining its purpose.
- Keep site code separate from drafts, internal research, and private records.
- Review changes before merging them into the production branch. Never commit credentials or customer data.
- Pick a website hosting service and preview the site before connecting a public domain.
GitHub + Cloudflare
A Git-connected Cloudflare Pages project can build and deploy a static website from a private repository. Configure the project, choose the correct build command and output directory, and verify the preview before attaching your domain.
Connecting a repository to a deployment platform can publish its selected branch automatically. Do not connect an unreviewed project simply because the button exists.
Beginner rules that prevent expensive mistakes
- The account owner should own the domain, GitHub repository, hosting account and billing relationship.
- Give collaborators only the access they need; do not share your main account password.
- Record every paid service and renewal date; a private repository does not mean deployed website files are private.
- Keep backups and a short change log so a beginner can understand what an AI assistant modified.
Official reference: GitHub: creating a repository.
Return to learning path →