Skip to content

boringcollege/git-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git By Example

A practical guide to Git — learn by doing, not by reading manuals.

By Dariush Abbasi


About This Book

Git is the most widely used version control system in the world, yet many developers only scratch the surface of what it can do. This book takes a different approach: instead of long explanations, every concept is taught through clear, runnable examples you can try right now in your terminal.

Whether you're a complete beginner or someone who has been using git add, git commit, and git push for years without really understanding what's happening underneath, this book is for you.

Table of Contents

Part I — Foundations

  1. Getting Started
  2. The Basics: Add, Commit, Status
  3. Viewing History
  4. Undoing Things

Part II — Branching & Collaboration

  1. Branches
  2. Merging
  3. Rebasing
  4. Working with Remotes

Part III — Intermediate Techniques

  1. Stashing
  2. Tagging
  3. Cherry-Picking
  4. Interactive Rebase

Part IV — Advanced Topics

  1. Git Internals: Objects & Refs
  2. Reflog: Your Safety Net
  3. Bisect: Finding Bugs
  4. Worktrees
  5. Submodules

Part V — Real-World Workflows

  1. Branching Strategies
  2. Writing Good Commit Messages
  3. Git Hooks
  4. Tips & Tricks

Appendices


How to Read This Book

Every chapter follows the same pattern:

📖 Concept — a short explanation (a few sentences, not pages).
💻 Example — a real command you can run and its output.
🧠 What happened? — a brief note on what Git did behind the scenes.

You'll learn best if you open a terminal alongside this book and type every example yourself.

Contributing

Found a typo? Have a better example? Contributions are welcome! Please open an issue or submit a pull request at github.com/boringcollege/git-by-example.

License

This work is licensed under CC BY-SA 4.0. You are free to share, adapt, and build upon this book, even commercially, as long as you give credit and share under the same license.

About

A practical guide to Git — learn by doing, not by reading manuals.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages