A small web project can move from a feature branch to production quickly, but speed should not depend on memory. This reusable Git branching and release checklist helps you review code, verify environments, prepare deployment, and keep a rollback path before merging or releasing a web app.
Overview
A practical release process separates four decisions: what changed, whether the change is safe, how it will be deployed, and how the team will recover if the release fails. The exact commands vary between Git hosts, CI systems, and cloud platforms, but the checks remain broadly similar.
For a small project, a simple branching strategy is usually easier to maintain than a large collection of long-lived branches. Keep the default branch deployable, create short-lived branches for focused work, and merge through a pull request after automated and human review. Common branch names include:
feature/account-settingsfor a user-facing improvementfix/empty-cart-statefor a defect correctionchore/update-dependenciesfor maintenance workhotfix/payment-timeoutfor an urgent production correctionrelease/2026-11when a project needs a short stabilization period before deployment
Use one branch for one understandable change whenever possible. Smaller pull requests are easier to test, review, revert, and explain later. Before starting work, update your local default branch and create the new branch from the latest agreed starting point:
git switch main
git pull --ff-only
git switch -c feature/short-description
Adapt the branch name and default branch to your repository. The important principle is that the branch should begin from a known, current state.
Checklist by scenario
Before opening a pull request
- Confirm the change has a clear purpose and does not include unrelated cleanup.
- Remove debugging output, temporary flags, test credentials, generated files, and local configuration.
- Run the project formatter, linter, type checker, and relevant unit or integration tests.
- Test the changed user flow at the screen sizes and browsers your project supports.
- Check loading, empty, error, permission, and retry states rather than testing only the successful path.
- Review the diff from the default branch, not only the files you remember editing.
- Update comments, API examples, migration notes, or documentation when behavior has changed.
For payload-heavy work, validate representative JSON rather than relying on a visually tidy request. The JSON validation and formatting guide can help identify syntax and type issues. For endpoint changes, reproduce requests and inspect status codes, headers, response bodies, and failure cases using the REST API testing workflow.
Pull-request review checklist
- Is the problem and intended behavior described in the pull request?
- Are the tests meaningful for the risk of the change?
- Could the change break an existing API consumer, database query, form, or background job?
- Are authentication, authorization, validation, and error handling still correct?
- Does the change introduce a new environment variable, feature flag, migration, scheduled task, or deployment step?
- Are accessibility basics covered, including keyboard operation, focus behavior, labels, and readable error messages?
- Has the reviewer checked the rendered result rather than reviewing source code alone?
For interface changes, combine automated checks with a short manual pass. The web accessibility testing workflow provides a repeatable way to check keyboard use, screen-reader concerns, and automated findings.
Before merging
- All required CI checks pass on the exact commit being merged.
- Required reviewers have approved the change.
- Merge conflicts have been resolved and the resulting code has been retested.
- The pull request title and commit history are understandable enough for future investigation.
- Any database migration has a safe order of operations and a documented recovery approach.
- The release owner knows what will change and how to verify it after deployment.
Prefer a merge method that preserves the repository’s established history and review rules. Consistency matters more than choosing a particular merge style for every project.
Before a production release
| Area | Checks |
|---|---|
| Frontend | Build succeeds; assets load; routes work; forms and error states are usable; cache behavior is understood. |
| Backend | Health checks pass; required services are reachable; authentication and authorization are verified; logs do not expose secrets. |
| Database | Migration order is known; backups or recovery procedures are available; indexes and data transformations have been considered. |
| Configuration | Production environment variables exist, have the expected names and formats, and are managed outside the repository. |
| Hosting and DNS | The intended deployment target, domain, TLS configuration, redirects, and rollback mechanism are confirmed. |
| Documentation | Release notes, setup instructions, API details, and operational notes match the shipped behavior. |
For domain and certificate changes, test both the canonical hostname and alternate hostnames where applicable. If a deployment changes redirects, secure connections, or asset origins, use the TLS and HTTPS troubleshooting guide as a verification reference.
What to double-check
Environment variables and secrets
Make a list of configuration values the release expects: database URLs, API keys, origin allowlists, session settings, storage buckets, feature flags, and external service identifiers. Confirm that each value is present in the correct environment and that a missing value fails clearly. Never use a real secret in a committed example, test fixture, screenshot, or client-side bundle unless it is explicitly intended to be public.
Check whether a variable is read at build time or runtime. Frontend applications often embed selected configuration during the build, while backend applications may read values when the process starts. A successful build does not prove that production runtime configuration is correct.
Database and compatibility changes
Consider whether old application code can run against the new schema and whether the new application can tolerate old records. A safer sequence for many changes is to add a compatible column or structure, deploy code that can use both forms, backfill data if needed, and remove the old form only after it is no longer required. Treat this as a design decision rather than an automatic rule.
Release verification and rollback
Write down the first five checks you will perform after deployment: for example, open the homepage, sign in with a test account, submit a representative request, inspect logs, and verify a key background task. Define what failure looks like and who can make the rollback decision.
A rollback might mean redeploying the previous application version, reverting a feature flag, restoring a previous container image, or applying a forward fix. Database changes may not be safely reversible, so document database recovery separately from application rollback. If a release changes timestamps or scheduled behavior, test time-zone assumptions with the JavaScript date and time zone guide.
Common mistakes
- Merging a large mixed-purpose branch: Separate refactoring, dependency updates, and product changes when they do not need to ship together.
- Testing only locally: A local environment may hide differences in operating system, database version, build settings, DNS, or production permissions.
- Assuming green CI means release-ready: Automated checks may not cover visual regressions, real integrations, accessibility, migrations, or operational behavior.
- Committing environment files: Keep secrets and environment-specific configuration in the project’s approved secret-management system.
- Skipping the diff review: Generated files, lockfile changes, debug code, and accidental deletions are easiest to find by reviewing the complete diff.
- Forgetting documentation: A release is incomplete when the next developer cannot reproduce the setup or understand the changed contract.
- Having no rollback owner: During an incident, uncertainty about who can revert a release adds avoidable delay.
Also avoid treating formatting as a substitute for review. Consistent JSON, SQL, Markdown, and URL encoding can make changes easier to inspect, but formatting does not prove that a query is safe or that an API contract is correct. Use the relevant SQL formatter and linter workflow or Markdown, HTML, and URL encoding reference alongside functional checks.
When to revisit
Review this checklist before each feature merge, staging handoff, hotfix, and production release. Revisit the project’s written workflow at least during seasonal planning cycles and whenever the underlying tools or hosting arrangement changes. That includes changing Git rules, CI providers, deployment targets, database engines, authentication systems, domain configuration, or frontend build tooling.
At the next team review, compare the checklist with the last few releases. Remove checks that create no useful signal, add recurring failure points, and assign an owner for steps that are currently ambiguous. Keep a short release record containing the commit or version, migration status, verification results, known risks, and rollback action.
Ready-to-use final pass: review the full diff, run the project checks, verify environment variables, confirm database and deployment steps, test the highest-risk user flow, record the rollback method, then release. After deployment, run the smoke test and monitor the expected logs before declaring the change complete.