Git tutorials
35 articles · page 2 of 2Hand-written tutorials, ordered as a recommended learning path.
- 21 Git Bisect Learn to use git bisect to find the exact commit that introduced a bug. Covers manual bisect, automated bisect with scripts, and practical strategies.
- 22 Advanced Git Stash Go beyond basic git stash. Learn partial stashing, stash branches, managing multiple stashes, and recovering dropped stashes.
- 23 Git Worktrees Learn to use git worktrees to check out multiple branches at once without stashing or switching. Covers setup, workflows, and practical use cases.
- 24 git bisect Use git bisect to binary-search through history and pinpoint the commit that introduced a regression, with manual and automated examples.
- 25 Cherry-pick Learn how to copy specific commits across branches with cherry-pick and how to safely undo merged changes with revert, including conflict handling and recovery.
- 26 Git Hooks Automate checks before commits, pushes, and merges with native git hooks and the pre-commit framework. Keep your repo clean without slowing down.
- 27 Git LFS Set up Git LFS to version large binaries like images, models, and datasets without bloating your repository, including tracking, migration, and CI tips.
- 28 PR Best Practices How to open pull requests reviewers actually enjoy: small scope, clear descriptions, good commit hygiene, useful CI, and how to handle review feedback without endless back-and-forth.
- 29 Rebase vs Merge A clear, practical guide to choosing between git rebase and git merge, with safe workflows for feature branches, shared branches, and pull requests.
- 30 git reflog Use git reflog to recover lost commits, branches, and stashes after rebases, resets, and bad merges. A practical walkthrough of how Git remembers where HEAD has been.
- 31 Git Stash Learn how to use git stash to safely shelve uncommitted changes, switch contexts, and recover work using push, pop, apply, and branch workflows.
- 32 Submodules vs Subtrees Compare git submodules and subtrees for managing nested repositories, including workflows, trade-offs, and when to choose each approach in practice.
- 33 Tags and Releases Learn lightweight vs annotated tags, signed tags, semantic versioning, and how to ship clean releases on GitHub. Practical workflow from tagging to changelog to publishing.
- 34 git worktree Use git worktree to check out multiple branches at once without cloning. Speed up code review, hotfixes, and experimentation.
- 35 Git Branching Compare trunk-based development, gitflow, and GitHub flow. Learn when each strategy fits, how they affect release cadence, and which commands to actually use day to day.