Skip to main content

Git

The distributed version control system used by virtually every development team.

Documentation

GuideDescription
Git FundamentalsRepositories, commits, branches, merging, remotes, collaboration workflows
Advanced GitRebase, cherry-pick, hooks, bisect, internals, Git Flow, trunk-based dev
Command Cheat Sheet150+ commands organized by category — setup, branching, stash, remote, GitHub CLI
Interview Questions40+ questions from beginner to advanced with detailed answers

Learning Path

  1. Start with fundamentals — repos, commits, branches, merging, collaboration
  2. Move to advanced topics — rebase, hooks, internals, workflows at scale
  3. Keep the cheat sheet handy — 150+ commands at your fingertips
  4. Practice interview questions — 40+ Q&A with detailed explanations

Quick Start

# Initialize a new repository
git init my-project && cd my-project

# Basic workflow
git add .
git commit -m "Initial commit"

# Branching
git checkout -b feature/new-feature
# ... make changes ...
git add . && git commit -m "Add new feature"
git checkout main && git merge feature/new-feature

# Remote operations
git remote add origin https://github.com/user/repo.git
git push -u origin main

External Resources

ResourceDescription
Pro Git BookThe definitive Git book (free)
Learn Git BranchingVisual interactive Git tutorial
Git ImmersionHands-on introduction to Git
Oh My Git!Open source game about learning Git
GitHub SkillsOfficial GitHub learning platform
Atlassian Git TutorialAdvanced Git concepts
Oh Shit, Git!?!Practical solutions to common Git problems

Video Tutorials

ResourceDescription
Git and GitHub in 5 HoursComprehensive video course
Brian Yu's Git IntroductionBeginner-friendly introduction