← Back to all products

Git Commands & Workflows Guide

$12

Visual guide to Git branching strategies, merge vs rebase, cherry-pick, stash, reflog, and CI/CD integration patterns.

📁 7 files🏷 v1.0.0
MarkdownJSONYAMLShellGitHub ActionsCI/CD

📄 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

git-workflows-guide/ ├── LICENSE ├── README.md ├── config.example.yaml ├── docs/ │ ├── checklists/ │ │ └── pre-deployment.md │ ├── overview.md │ └── patterns/ │ └── pattern-01-standard.md └── templates/ └── config.yaml

📖 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/`)

FileTopics Covered
01-git-essentials.mdCore commands: init, add, commit, status, diff, log, remote, push, pull, fetch
02-branching-strategies.mdGitFlow, GitHub Flow, trunk-based development, release branching — comparison chart and decision guide
03-merge-vs-rebase.mdWhen to merge vs rebase, interactive rebase, conflict resolution, team guidelines
04-advanced-commands.mdCherry-pick, stash, reflog, bisect, worktree, subtree, blame, archive
05-git-hooks.mdClient and server hooks, pre-commit, commit-msg, pre-push, hook scripts
06-cicd-integration.mdGitHub Actions, GitLab CI, branch-based deployment, tag-based releases, monorepo patterns
07-troubleshooting.mdUndo commits, fix mistakes, recover lost work, resolve conflicts, clean up history

Example Files (`examples/`)

FileDescription
gitconfig-recommendedProduction .gitconfig with useful aliases, diff settings, and merge tools
pre-commit-hook.shPre-commit hook checking for secrets, lint, and file size
github-actions-ci.ymlGitHub Actions workflow with test, build, and deploy stages
gitlab-ci.ymlGitLab 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.

📄 Code Sample .yml preview

examples/github-actions-ci.yml # ============================================================================= # GitHub Actions CI/CD Pipeline # ============================================================================= # A production-ready CI/CD workflow demonstrating: # - Test matrix (multiple Python versions) # - Dependency caching # - Lint + test + build stages # - Conditional deployment (only on main/tags) # - Artifact upload # # Place in: .github/workflows/ci.yml # ============================================================================= name: CI/CD Pipeline on: push: branches: [main, develop] tags: ["v*"] pull_request: branches: [main] # Cancel in-progress runs when a new push arrives on the same branch concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true # Restrict permissions to minimum required permissions: contents: read jobs: # ========================================================================= # Stage 1: Lint & Format Check # ========================================================================= lint: name: Lint & Format runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.12" - name: Install lint tools run: pip install flake8 black isort mypy - name: Check formatting (black) # ... 160 more lines ...
Buy Now — $12 Back to Products