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), andcherry-pick(single commits). - Resolve merge conflicts, use
git stashfor quick context switches, and usegit reflogto 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-releaseorgithub-tag-action).
Further Reading
- Pro Git Book — Official, complete Git book (free online).
- Learn Git Branching — Interactive visualizer for branching, rebasing, and cherry-picking.
- GitHub Docs — Actions — Official GitHub Actions CI/CD documentation.
- GitHub CLI Manual — Official reference for
ghcommands. - Conventional Commits — Commit message specification.