🌳 Git Command Visualizer

Understand what Git commands actually do - with visual explanations

Enter Git Command

$

📚 Quick Reference

🎯 Git Scenarios

I want to undo my last commit

Keep changes in working directory

git reset --soft HEAD~1

I want to discard all local changes

Reset to last commit

git reset --hard HEAD

I want to rename a branch

Change branch name

git branch -m old-name new-name

I have merge conflicts

Resolve conflicts step by step

git status → edit files → git add → git commit

I need to switch branches but have uncommitted work

Temporarily save changes

git stash

I want to apply a specific commit from another branch

Copy commit to current branch

git cherry-pick <commit-hash>

I forgot to add a file to my last commit

Modify the last commit

git add file && git commit --amend

I want to see commit history visually

Pretty log with graph

git log --graph --oneline --all