Quick reference for common Git commands — searchable by category
git init | Initialize a new repository |
git clone <url> | Clone a remote repository |
git config --global user.name "Name" | Set global username |
git config --global user.email "email" | Set global email |
git status | Show working tree status |
git add <file> | Stage a file |
git add . | Stage all changes |
git commit -m "message" | Commit staged changes |
git commit --amend | Amend last commit |
git branch | List branches |
git branch <name> | Create a branch |
git checkout <branch> | Switch to branch |
git checkout -b <branch> | Create and switch to branch |
git merge <branch> | Merge branch into current |
git branch -d <branch> | Delete a branch |
git remote -v | List remotes |
git push origin <branch> | Push to remote |
git pull | Fetch and merge from remote |
git fetch | Fetch from remote (no merge) |
git log | Show commit history |
git log --oneline | Compact commit history |
git diff | Show unstaged changes |
git stash | Stash current changes |
git stash pop | Apply stashed changes |
The Git Command Cheat Sheet is a quick searchable reference for the most common Git commands, organized by category. Browse Setup, Staging, Branching, Remote, and Log commands — or search by keyword to find exactly what you need.
In the high-speed development environment of 2026, the command line remains the most powerful and efficient way to interact with Git. While GUI tools have improved, they often lack the precision and flexibility required for complex branching strategies, multi-remote workflows, and precise history manipulation. Our Git Command Cheat Sheet provides a searchable, categorized reference for the most essential commands, from basic setup to advanced log filtering. By keeping these commands at your fingertips, you can reduce context switching and maintain a high-performance development rhythm.
A major trend in 2026 is the focus on "Atomic Commits" and "Semantic Versioning." Professional developers prioritize small, focused commits that are easy to review and revert if necessary. Our cheat sheet includes the essential commands for staging (git add -p), committing (git commit -m), and amending (git commit --amend), helping you maintain a clean and meaningful repository history. By mastering these core utilities, you ensure that your codebase is not only well-documented but also resilient to the rapid changes of modern software lifecycles.
Finally, consider the importance of "Local-First" privacy in your version control workflows. At AllOmnitools, we believe your development environment should be a secure, private space. Our Git Cheat Sheet runs entirely in your browser, ensuring that your search queries and the commands you browse never leave your device. This approach provides zero-latency access to critical information, even in restricted or offline environments. By combining this cheat sheet with other AllOmnitools like the Fix Git Errors guide, you have a complete ecosystem for mastering version control in 2026.
Zero server lag. All Git commands and categories are searchable instantly for your workflow.
Your search queries and development preferences remain private. We never track or store your Git data.
These commands work with Git 2.x and above, which covers the vast majority of modern Git installations.
Use git reset --soft HEAD~1 to undo the last commit while keeping changes staged, or git reset --hard HEAD~1 to discard changes entirely.
git fetch downloads changes from the remote but doesn't merge them. git pull fetches and immediately merges into your current branch.
Yes, completely free with no sign-up required.