Git Commands
Essential Git commands for version control - from basic operations to advanced techniques
Table of Contents
Getting Started
Initial Setup
Configure Git for first time use with your identity
Create & Clone Repositories
Start a new project or get an existing one
Making Changes
Check Status & Differences
See what has changed in your working directory
Stage & Commit Changes
Save your work to the repository history
Stashing Changes
Save Work Temporarily
Store uncommitted changes for later without committing
Branching
Branch Management
Create, list, and delete branches for parallel development
Merging & Rebasing
Combine changes from different branches
Working with Remotes
Remote Repositories
Connect and sync with remote repositories
Fixing Mistakes
Undo Changes
Revert uncommitted changes in your working directory
Revert Commits
Undo committed changes by creating new commits
Merge Conflicts
Resolve Conflicts
Handle and fix merge conflicts when combining branches
Viewing History
Log & History
Explore repository history and find specific commits
Tags & Releases
Version Tagging
Mark specific commits as releases or milestones
Advanced Techniques
Submodules
Include other Git repositories within your project
Bisect (Find Bugs)
Binary search through history to find the commit that introduced a bug
Worktrees
Work on multiple branches simultaneously in different directories
Quick Reference
Daily Workflow
Common Git workflow for everyday development
Useful Aliases
Set up shortcuts for common Git commands