A concise, visual Git command reference — boxed layout, Mermaid diagrams, printable.
Organized by task, common to advanced — each section fits on a printed page.
Everyday — Getting Started, Making Changes, Stashing, Branching
Inspect & Sync — Viewing Changes, History & Blame, Push & Pull, Remote Setup
Integrate — Merging, Rebasing, Cherry-Pick & Tags, Resolving Conflicts
Fix Mistakes — Undoing Local Changes, Reverting Commits, Rewriting History, Commit References
Reference — Config & Tools, Naming & Messages, Workflows, Key Concepts
- Jekyll + GitHub Pages
- Mermaid for git flow diagrams
- CSS Grid for the boxed layout
@media printstyles for PDF export (File → Print → Save as PDF)
On Windows, the easiest path is RubyInstaller (pick the version with DevKit).
On macOS, Ruby is preinstalled; on Linux, use your package manager (apt install ruby-full or similar).
bundle install
bundle exec jekyll serveThen open http://localhost:4000/cheatsheet_git/.
PRs welcome — content lives in _sections/*.md. Each section is a Markdown file with front matter for ordering and layout.
MIT