Skip to content
Codeloom

Topics / Git

Git

Version control done right. From your first commit to advanced workflows.

Why learn Git?

  • Mandatory for any professional software job.

  • The skill that separates "code on my laptop" from "code on a team".

  • Lets you experiment fearlessly — every change is recoverable.

  • GitHub workflows (PRs, reviews) are the backbone of modern teamwork.

What you can build with Git

Tracking changes in any project Collaborating via branches and pull requests Maintaining open-source projects Rolling back broken deploys with confidence

Git tutorials

35 articles · page 1 of 2

Hand-written tutorials, ordered as a recommended learning path.

  1. 01 What is Git? A clear, jargon-light introduction to Git — what it is, why it exists, how it differs from GitHub, and the core mental model every developer needs.
  2. 02 Install & First Commit Install Git on Windows, macOS, or Linux, configure your identity, initialise a repository, and walk through the full life cycle of your first commit.
  3. 03 Branching Learn what a Git branch really is, how to create and switch branches, how to merge work back into main, and how to resolve a simple merge conflict.
  4. 04 Merge vs Rebase A clear comparison of git merge and git rebase — what each one does to history, the trade-offs, the golden rule, and a practical decision guide for beginners.
  5. 05 GitHub Workflow An end-to-end workflow for using Git with GitHub: create a repo, set up SSH, push your code, work with branches and pull requests, and recover from common mistakes.
  6. 06 Stash & Undo Learn to stash work in progress, undo commits with restore, reset, and revert, and recover lost work from the reflog — with clear warnings about which commands rewrite history.
  7. 07 Remotes & PRs Understand Git remotes, the difference between origin and upstream, fetch vs pull, the forking workflow, and how to open a pull request that is easy to review.
  8. 08 Rebase Explained A deeper look at git rebase — the mechanics, interactive rebase with squash/fixup/edit/drop, the golden rule of published branches, conflict resolution, and rerere for repeated conflicts.
  9. 09 Advanced Rebase Master interactive rebase, autosquash, fixup commits, and rebase --onto for clean Git history. Advanced techniques for rewriting, reorganizing, and cleaning up commits.
  10. 10 Bisect Bug Hunting Use git bisect to binary search through your commit history and pinpoint the exact commit that broke your code. Covers manual, automated, and advanced bisect workflows.
  11. 11 Hooks & Automation Automate code quality checks with Git hooks. Set up pre-commit linting, pre-push testing, commit message validation, and manage hooks with Husky across teams.
  12. 12 Monorepo Strategies Scale Git monorepos with sparse checkout, partial clones, shallow clones, and modern tooling like Turborepo and Nx. Practical strategies for keeping large repos manageable.
  13. 13 Reflog Recovery Master git reflog to recover lost work after bad rebases, accidental resets, deleted branches, and dropped stashes. Your safety net for every Git disaster.
  14. 14 Commit Signing Set up GPG and SSH commit signing for Git. Verify commit authenticity, configure GitHub verified badges, and enforce signed commits across your team.
  15. 15 Submodules vs Subtrees Compare git submodules and subtrees for managing shared code and nested repositories. Learn workflows, trade-offs, and when to use each approach in real projects.
  16. 16 Worktrees Parallel Dev Master parallel feature development with git worktrees. Run multiple branches simultaneously, handle urgent hotfixes without stashing, and optimize team workflows.
  17. 17 Git Bisect Bugs Learn how to use git bisect to perform binary search through your commit history and pinpoint the exact commit that introduced a bug in your codebase.
  18. 18 Hooks for CI/CD Build custom Git hooks that integrate with CI/CD pipelines: server-side hooks, push-based triggers, branch protection enforcement, and automated deployment gates.
  19. 19 Monorepo Management Manage large Git monorepos with sparse checkout, partial clone, subtrees, CODEOWNERS, and scaling strategies that keep performance acceptable as the repo grows.
  20. 20 Rebase Strategies Advanced git rebase strategies for teams: interactive rebase workflows, rebase --onto, autosquash, and policies that keep shared branches clean without rewriting public history.