Experimenting With Git
I said something really important on the previous page. It's so important I'll repeat it.
In describing Git's garbage collection algorithm, I said, "Starting from every branch and every tag, Git walks back through the graph, building a list of every commit it can reach." (Emphasis added.)
Everything I've written up to this point has been to provide the background for you to understand this one thing. If I had ten seconds to tell you The Secret Of Git—the entire point of this site—I can fit it into these four words:
References make commits reachable.
- About This Site
- Git Makes More Sense When You Understand X
- Example 1: Kent Beck
- Example 2: Git for Ages 4 and Up
- Example 3: Homeomorphic Endofunctors
- Example 4: LSD and Chainsaws
- The Internet Talks Back!
- Graph Theory
- Seven Bridges of Königsberg
- Places To Go, and Ways to Get There
- Nodes and Edges
- Attaching Labels to Nodes
- Attaching Labels to Edges
- Directed Versus Undirected Graphs
- Reachability
- Graphs and Git
- Visualizing Your Git Repository
- References
- The Reference Reference
- Making Sense of the Display
- Garbage Collection
- Experimenting With Git ←HEAD
- References Make Commits Reachable
- My Humble Beginnings
- Branches as Savepoints
- Use Your Targeting Computer, Luke
- Testing Out Merges
- Rebase From the Ground Up
- Cherry-Picking Explained
- Using 'git cherry-pick' to Simulate 'git rebase'
- A Helpful Mnemonic for 'git rebase' Arguments
- The End