Git Commands Cheatsheet
Quick reference for common Git commands and their usage
Initialize a new Git repository
Clone a repository from a remote source
Configure Git settings
Stage files for commit
Commit staged changes
Show repository status
Show commit history
List, create, or delete branches
Switch between branches or restore files
Switch between branches (newer alternative to checkout)
Merge branches
Manage remote repositories
Download objects and refs from remote
Fetch and merge changes from remote
Upload local changes to remote
Reapply commits on top of another base
Reset current HEAD to specified state
Stash changes in a dirty working directory
Apply commit from another branch
Show changes between commits, commit and working tree
Show various types of objects
Show what revision and author last modified each line
Start Working
Make Changes
Commit Changes
Push Changes
Complete Reference
All essential Git commands with examples
Quick Search
Find commands by name or description
One-Click Copy
Copy commands directly to clipboard