Searchable reference of 100+ common Git commands organized by category. Find the exact command you need for any Git workflow.
About the Git Cheatsheet
Git is the world's most popular distributed version control system, used by millions of developers across every platform. With hundreds of commands and options, Git can be overwhelming even for experienced developers. This comprehensive cheatsheet provides instant access to 100+ commonly used Git commands organized by category, with clear descriptions and clickable command copies. Whether you are a beginner learning Git basics or an advanced user looking for that specific rebase option, this reference has you covered.
Each command includes the exact syntax and a concise explanation of what it does, when to use it, and what the common options mean. The searchable, filterable interface lets you find the right command in seconds instead of scrolling through pages of documentation.
How to Use This Cheatsheet
Search by keyword: Type any term like "branch", "merge", "commit", or "remote" to instantly filter commands.
Filter by category: Click category tabs to focus on Setup, Snapshot, Branch, Merge, Share, Inspection, or Advanced commands.
Click to copy: Click any command to copy it to your clipboard for immediate use in your terminal.
Browse all: Remove filters to see the complete list of 100+ Git commands.
100+ CommandsComprehensive reference covering every aspect of Git from basic init to advanced rebase workflows.
Instant SearchType any keyword to instantly filter commands by name, description, or category.
Category FilterOrganized into 7 categories: Setup, Snapshot, Branch, Merge, Share, Inspection, and Advanced.
Click to CopyClick any command to copy it to your clipboard for immediate use in your terminal.
Clear DescriptionsEvery command includes a concise explanation of what it does and common usage patterns.
Always UpdatedCovers modern Git features including worktrees, worktrees, bisect, and advanced rebase options.
Essential Git Workflow Categories
Setup & Config: Initialize repositories, configure user settings, and set up aliases for common operations.
Snapshot & Staging: Add files to staging, create commits, amend previous commits, and manage your working directory.
Branch & Checkout: Create, switch, rename, and delete branches. The core of parallel development workflows.
Merge & Rebase: Combine branches using merge or rebase strategies. Handle conflicts and maintain clean history.
Share & Update: Push, pull, fetch, and manage remote repositories. Collaborate with your team effectively.
Inspection & Log: View history, compare changes, search commits, and understand your repository state.
Daily DevelopmentQuick reference for everyday Git commands during feature development and code review.
Code ReviewFind commands for comparing branches, viewing diffs, and managing pull requests.
Disaster RecoveryQuick access to reset, revert, and recovery commands when things go wrong.
Team CollaborationReference for sharing, fetching, and managing remote branches with your team.
Why Choose TooliFyra for Git Reference?
TooliFyra's Git Cheatsheet is the most comprehensive, searchable, and user-friendly Git command reference available online. With 100+ commands, instant search, category filtering, and click-to-copy functionality, it eliminates the need to memorize every Git command or dig through verbose documentation. The clean interface and clear descriptions make it the perfect companion for developers at every skill level.
Frequently Asked Questions
git merge creates a merge commit that combines two branches, preserving the full history of both. git rebase replays commits from one branch onto another, creating a linear history. Use merge for shared branches and rebase for local cleanup before sharing.
Use git reset --soft HEAD~1 to undo the commit but keep changes staged, git reset HEAD~1 to undo and unstage changes, or git reset --hard HEAD~1 to completely discard the commit and all changes. For shared commits, use git revert instead.
git stash temporarily saves uncommitted changes (both staged and unstaged) so you can work on something else. Use git stash pop to restore the changes or git stash list to see all stashed changes. It is useful for context switching between tasks.
When a merge conflict occurs, Git marks the conflicting files with <<<<<<< , ======= , and >>>>>>> markers. Edit the files to resolve the conflicts, then git add the resolved files and run git commit to complete the merge. Use git mergetool for visual conflict resolution.
Related IT Tools
More developer and IT tools to boost your productivity