Git Commands & Workflows Guide
Visual guide to Git branching strategies, merge vs rebase, cherry-pick, stash, reflog, and CI/CD integration patterns.
📄 Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample📁 File Structure 7 files
📖 Documentation Preview README excerpt
Git Commands & Workflows Guide
Version: 2.0.0 | Price: $12 | Format: Markdown + HTML + config examples
Overview
A practical guide to Git commands and branching workflows for professional development teams. Covers everything from daily Git operations to advanced techniques (cherry-pick, stash, reflog, bisect), branching strategies (GitFlow, trunk-based, GitHub Flow), merge vs rebase decision-making, and CI/CD integration patterns.
This isn't just a command list — it includes workflow diagrams, decision trees, and real-world patterns that help you choose the right approach for your team.
Who Is This For?
- Developers who want to go beyond
git add/commit/push - Tech leads choosing a branching strategy for their team
- DevOps engineers integrating Git workflows with CI/CD pipelines
- Anyone who's been burned by a bad merge or lost work
What's Inside
Cheatsheet Files (`cheatsheets/`)
| File | Topics Covered |
|---|---|
01-git-essentials.md | Core commands: init, add, commit, status, diff, log, remote, push, pull, fetch |
02-branching-strategies.md | GitFlow, GitHub Flow, trunk-based development, release branching — comparison chart and decision guide |
03-merge-vs-rebase.md | When to merge vs rebase, interactive rebase, conflict resolution, team guidelines |
04-advanced-commands.md | Cherry-pick, stash, reflog, bisect, worktree, subtree, blame, archive |
05-git-hooks.md | Client and server hooks, pre-commit, commit-msg, pre-push, hook scripts |
06-cicd-integration.md | GitHub Actions, GitLab CI, branch-based deployment, tag-based releases, monorepo patterns |
07-troubleshooting.md | Undo commits, fix mistakes, recover lost work, resolve conflicts, clean up history |
Example Files (`examples/`)
| File | Description |
|---|---|
gitconfig-recommended | Production .gitconfig with useful aliases, diff settings, and merge tools |
pre-commit-hook.sh | Pre-commit hook checking for secrets, lint, and file size |
github-actions-ci.yml | GitHub Actions workflow with test, build, and deploy stages |
gitlab-ci.yml | GitLab CI pipeline with stages, caching, and environment deployment |
Quick Reference (`cheatsheet.html`)
A single self-contained HTML page with the most essential Git commands and workflows in a printable format.
How to Use
1. Unzip the product to any directory
2. Browse the cheatsheets/ folder — start with 01-git-essentials.md
3. Open cheatsheet.html for a printable desk reference
4. Copy files from examples/ into your projects and customize
5. Share the branching strategy comparison with your team to align on a workflow
Format Notes
- All cheatsheets are GitHub-flavored Markdown
- Includes ASCII diagrams for branching workflows (no external image dependencies)
- Decision trees help you choose the right tool for each situation
- Examples use realistic (but anonymized) repository names and URLs
Changelog
... continues with setup instructions, usage examples, and more.