Skip to main content

Git & GitHub Roadmap

A short roadmap to master Git and GitHub workflows, from daily commits to CI/CD and automated releases.

1. Git Basics​

  • Understand the three areas: Working Tree, Staging Area (Index), and Local Repository.
  • Master status, diff, add, commit, log, restore, and .gitignore.
  • Set up an SSH key (ed25519) for GitHub instead of using passwords.
  • See also: Git & GitHub CLI Cheatsheet.

2. Branching & History Management​

  • Create and manage small feature branches (git switch, git branch).
  • Know when to use merge, rebase (linear history), and cherry-pick (single commits).
  • Resolve merge conflicts, use git stash for quick context switches, and use git reflog to recover lost commits.
  • Follow Conventional Commits (feat:, fix:, docs:, refactor:) for readable history and automated versioning.

3. GitHub Pull Request Workflow​

  • Keep PRs small and focused; use GitHub CLI (gh) directly from the terminal.
  • Review code cleanly, use draft PRs, choose Squash or Rebase merge, and enable Branch Protection / Rulesets on main.
  • Track work with Issues, Milestones, and Security Alerts (Dependabot, secret scanning).

4. GitHub Actions & Automated Release​

  • Build CI workflows (.github/workflows/ci.yml) to run lint, tests, and builds on every PR.
  • Use reusable workflows (workflow_call), GitHub Environments, and Secrets for safe deployments.
  • Automate version bumps, Git tags, changelogs, and GitHub Releases (e.g., semantic-release or github-tag-action).

Further Reading​