Git Cheatsheet — Free Online Tool

Interactive Git command guide.. Git Cheatsheet is a free online tool from the ToolsRift Developer Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading Git Cheatsheet

How to use Git Cheatsheet

Search or browse grouped Git commands to find the exact syntax for tasks like committing, branching, rebasing or undoing changes, with a short note on each.

Frequently asked questions

How do I undo the last commit but keep changes?

Use git reset --soft HEAD~1, which moves the branch back one commit while leaving your changes staged.

What is the difference between merge and rebase?

Merge preserves history with a merge commit; rebase replays your commits onto another branch for a linear, cleaner history.

How do I discard local changes to a file?

git checkout -- file (or git restore file) reverts the file to the last committed state, discarding uncommitted edits.

More Developer Tools

Linux Commands Ref
Search Linux commands + examples.
Regex Cheatsheet
Regex patterns with live test.
HTTP Headers Ref
Common request/response headers.
Color Names Ref
CSS named colors palette.
Lorem Ipsum Advanced
Words/sentences/paragraphs generator.
Hash Generator Advanced
MD5/SHA1/SHA256/SHA512 side-by-side.

← View all Developer Tools