Git Commands Cheat Sheet

Developer Tools

Search the most-used Git commands

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB

Similar tools you may like

History

All history →

Git Commands Cheat Sheet — at a glance

Find the Git command you need without leaving the page.

Search
undo
Find Commands
Commands
git reset --soft HEAD~1 — …
git revert <commit> — …

How to use it — step by step

A word for what you want to do, or nothing to see all commands.

1

Paste your input

Paste or type your content into the big input box.

2

Choose options

Pick the mode and options that fit what you need.

3

Find Commands

Press the button. The result is created instantly on your device.

4

Copy the result

Check the output and press Copy to use it anywhere.

Pro tips

Small things that make the result better.

✦--hard deletes work — be careful.
✦Use revert on shared branches instead of reset.
✦git reflog can rescue commits you thought were lost.

Quick facts

Freeno signup, no limit
Instantresult in a moment
Privatenothing is uploaded
Any devicephone, tablet or PC

Frequently Asked Questions

What is the difference between reset and revert?+

Reset moves history back; revert adds a new commit that cancels an old one, which is safer for shared branches.

What is HEAD~1?+

The commit just before the current one.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

More Free Tools