Git Command Reference
Search everyday Git commands for branching, rebasing, stashing, and undoing mistakes with live placeholders.
Related developer tools
All Developer toolsBase64 Encoder & Decoder
Encode or decode UTF-8 text and convert local files into Base64 data URLs.
URL Encoder & Decoder
Percent-encode or decode URLs and inspect or edit query string parameters.
UUID Generator
Generate cryptographically random UUID v4 or time-ordered UUID v7 identifiers.
Regex Tester
Test regular expressions with live match highlights, capture groups, and replacements.
About Git Command Reference
Search practical Git commands for branching, rebasing, interactive staging, stashing, remotes, and recovering commits—complete with live branch, remote, and file path placeholders you can customize before copying.
How to use Git Command Reference
- 1
Customize the Branch, Remote, and File Path inputs to match your current repository.
- 2
Search by Git task (such as undo commit, force-with-lease, or reflog) or filter by category.
- 3
Click Copy on any command card to copy the ready-to-run Git command.
Frequently asked questions
Why does this reference recommend git switch and git restore over git checkout?
Git introduced switch (for branches) and restore (for files) to separate two very different operations that git checkout historically overloaded.
Why is --force-with-lease safer than --force when pushing a rebased branch?
--force-with-lease aborts the push if someone else updated the remote branch since your last fetch, preventing you from silently overwriting teammates’ commits.
Does Git Command Reference work offline?
Yes. All commands and filtering logic run entirely in your browser.
