Git CommandCheatsheet
Master Git with our comprehensive command reference. Learn by doing and track your progress.
100+ Commands
Comprehensive collection of essential Git commands
Live Examples
Real-world code examples you can copy instantly
Track Progress
Earn XP and unlock achievements as you learn
Master Git Commands
Copy commands to earn XP and track your learning progress
Most UsedGit Commands
Quick access to essential commands you'll use daily. Copy with one click and boost your productivity.
Check repository status
$git statusStage all changes
$git add .Commit staged changes
$git commit -m "message"Push to remote repository
$git pushPull from remote repository
$git pullList all branches
$git branchCreate new branch
$git checkout -b [name]Merge branch into current
$git merge [branch]Common GitWorkflows
Master proven workflows with interactive checklists. Track your progress and earn achievements.
Basic Workflow
Essential daily Git workflow
Get latest changes
$git pullStage your changes
$git add .Commit changes
$git commit -m "message"Push to remote
$git pushFeature Branch
Develop new features safely
Create feature branch
$git checkout -b feature/newStage changes
$git add .Commit feature
$git commit -m "Add feature"Push feature branch
$git push -u origin feature/newSwitch to main
$git checkout mainMerge feature
$git merge feature/newHotfix Workflow
Quick fixes for production
Create hotfix branch
$git checkout -b hotfix/urgentStage fix
$git add .Commit fix
$git commit -m "Fix bug"Push hotfix
$git push -u origin hotfix/urgentSwitch to main
$git checkout mainMerge hotfix
$git merge hotfix/urgent