Git Command Cheatsheet
Searchable reference of common git commands with copy buttons.
About the Git Command Cheatsheet
Browse and search a categorized list of common git commands — setup, basics, branching, remote, undo, tags, and advanced — with one-click copy for each command.
Examples
Undo last commit
undoOutput
git reset --soft HEAD~1Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Code Diff Merger
Dev Utilities
Side-by-side line diff of two code snippets with stats.
JSON Diff Viewer
Dev Utilities
Compare two JSON documents and see added, removed and changed keys.
Semver Checker
Dev Utilities
Compare versions and test semver ranges (^, ~, >=).
Regex Cheatsheet
Dev Utilities
Searchable regex syntax reference with examples and copy buttons.
.editorconfig Generator
Dev Utilities
Create an .editorconfig file with per-language overrides.
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser