Git Cheat Sheet — All Git Commands with Examples Free

Complete Git command reference with examples. Covers init, clone, commit, branch, merge, rebase, stash, and more. Interactive Git cheat sheet, free, no signup.

Help Us Improve
Be the first to rate!

Frequently Asked Questions

How do I use Git Cheat Sheet?
Search by command name or browse by workflow category. Each command shows the syntax, common flags, and a practical example.
Is Git Cheat Sheet free?
Yes, Git Cheat Sheet on ToolPix is 100% free with no signup or installation required.
Is my data safe?
This is a static reference tool. No data is entered or transmitted.
What is the difference between git merge and git rebase?
Merge creates a merge commit preserving the full history. Rebase rewrites commits onto the target branch for a linear history — cleaner but rewrites SHAs.
How do I undo the last commit without losing changes?
Use git reset --soft HEAD~1 to undo the commit but keep changes staged. Use git reset HEAD~1 to unstage. Use git reset --hard HEAD~1 to discard everything.