DEV Community

Dev Nestio
Dev Nestio

Posted on

Git Cheatsheet & Command Builder — 60+ commands, searchable, with parameter builder

What I built

Added a Git Cheatsheet & Command Builder to devnestio.

👉 https://git-cheatsheet-dev.pages.dev

A searchable reference covering 60+ Git commands across 9 categories. Click "Build" on any parameterized command to fill in values and copy the exact command you need.


Categories

  • Basics — init, clone, status, add, commit, log, diff
  • Staging — add -p, reset HEAD, restore, clean
  • Branch — branch, checkout, switch, merge, rebase, delete
  • Remote — remote -v, fetch, pull, push, force-with-lease
  • History — log --all, log --author, log -S (pickaxe), blame, bisect, shortlog
  • Undo — revert, reset --soft/mixed/hard, amend, cherry-pick
  • Stash — stash, stash push -m, list, pop, apply, drop, clear
  • Tags — tag, tag -a, push --tags, tag -d
  • Advanced — worktree, reflog, submodule, archive, grep, config

Command Builder

Commands with parameters (branch names, commit hashes, URLs, messages) have a "Build" button. Click it to open a panel where you fill in the values, then copy the complete command — no manual editing.

Example: clicking Build on git push {remote} {branch} gives you fields for remote and branch, with sensible placeholder defaults.


Features

  • Search by command name, syntax, or description
  • Filter by category tab
  • Live result count
  • Search term highlighted in results
  • Copy raw command or use the builder panel
  • Fully offline after first load

Tech

  • Pure Vanilla JS, zero dependencies
  • 80 Node.js assert tests covering data integrity, buildCommand, search/filter logic
  • Single HTML file, Cloudflare Pages

Try it

👉 Git Cheatsheet & Command Builder

All tools: https://devnestio.pages.dev

Top comments (0)