Let's Learn Git!
A hands-on tutorial that takes you from first commit to confident daily use. Learn Git's concepts first, then apply them through practical exercises and real-world examples.
What you'll learn
- How Git works — the workspace, index, and repository pipeline that every command builds on.
- Building blocks — objects, references, HEAD, and how Git stores your project history internally.
- Branching and merging — work on features in isolation, merge strategies, conflict resolution, cherry-pick, rebase, and stash.
- Remote collaboration — clone, push, pull, fetch, and forking workflows for team projects.
- Expert topics — configuration, selectors, refspecs, hooks, bisect, and history rewriting.
Chapters
| Chapter | What you'll learn |
|---|---|
| Introduction | What Git is, installation, how it works, command overview |
| Building Blocks | Repositories, objects, references, HEAD, tags |
| Branching and Merging | Branches, merge strategies, rebase, cherry-pick, conflicts, stash |
| Remote Repositories | Clone, push, pull, fetch, remote tracking, forking workflows |
| Subprojects | Submodules and subtrees for managing dependencies |
| Expert Topics | Configuration, selectors, refspecs, hooks, bisect, rewriting history |
| Playbook | Step-by-step recipes for common Git tasks |
| Appendix | Merge strategies, SSH setup, Git clients, references |
| Glossary | Key terms and definitions |
Quick start
New to Git? Start here:
- Install Git on your machine
- Understand how Git works — workspace, index, repository
- Try the exercises — clone, commit, push, pull
About
- Created by Branimir Georgiev and Marwan Rashed
- Part of Code with Branko — practical tutorials for developers
Selected references
- Pro Git Book — the definitive reference
- Git Internals — deep dive into Git's object model
- Flight Rules for Git — what to do when things go wrong
- Think Like (a) Git — graph theory perspective
- Learn Git Branching — interactive branching exercises