20
Systems + delivery / Beginner → intermediate

Git and GitHub workflow

Commits, branches, pull requests, merge strategy, CI checks, and a clean release workflow.

gitgithubbranchpull-requestci

01Daily commands

bashFeature branch
git status
git switch -c feature/docs
git add -A
git commit -m "feat: add documentation hub"
git push -u origin feature/docs

02Good commits

A commit should represent one understandable change. Commit messages should explain intent, not only the file that changed. Large risky work belongs on a branch with CI and review before merge.

03Production workflow

  • Create feature/fix branch from current main.
  • Implement with tests.
  • Run static checks, runtime tests, dependency audit, and migration smoke tests.
  • Open PR; review diff and CI.
  • Merge only when checks pass or a documented exception is intentional.
  • Deploy the merged commit and verify health/critical flows.