Project Configuration
Git
Connect a repository, choose your production branch, and control how pushes turn into deployments.
In the dashboardProject → Settings → Git
Connected repository & production branch
The connected GitHub repository and its production branch (usually main) are shown here. Pushes to the production branch deploy to your production URL; pushes to other branches create preview deployments.
Auto-deploy on push
With auto-deploy enabled, every push to a tracked branch triggers a build automatically via the GitHub webhook. Disable it if you'd rather deploy only manually or through a deploy hook.
A project must have one successful deployment before auto-deploy starts firing — the first deployment establishes the production target.
Branch policy
Configure which branches produce preview deployments and protect specific branches so they can't be deployed accidentally. For mapping branch patterns to named environments (staging, QA, …), see Deployment Environments.

