Why Great Investors and Great Engineers Both Think in Branches

Warish

Hatched by Warish

Jul 02, 2026

10 min read

68%

0

The Hidden Skill Behind Good Judgment

What do a durable business and a Git repository have in common?

At first glance, almost nothing. One is about capital allocation, moats, and leadership. The other is about commits, branches, and version history. But both quietly reward the same rare skill: the ability to distinguish signal from noise while a system is changing.

That is the deeper tension connecting them. Investors are told to look beyond quarterly numbers and study the business itself. Developers are told to look beyond the current working directory and study the structure of the repository itself. In both cases, the surface can be misleading. What matters is not just what exists now, but how easily the thing can evolve, break, recover, scale, and be trusted over time.

The best decisions are not made by staring at snapshots. They are made by understanding the machinery that produces the snapshot.

That is why the 4Ms of investing and the logic of Git feel more similar than they should. Both are frameworks for asking: What kind of system am I dealing with, and how safely can it change?


Businesses and Repositories Are Both Living Systems

A business is not a static number on a spreadsheet. It is a system of revenue streams, constraints, incentives, competitors, and leadership decisions. A repository is not just a folder of code. It is a system of commits, branches, references, and histories that lets many changes coexist without chaos.

This matters because the most important question is never simply, “Is it good today?” The deeper question is, “Can it keep being good while it changes?” A company with multiple scalable revenue streams behaves differently from one dependent on a single fragile channel. A repository with clear branches and disciplined commits behaves differently from one where every change is tangled into a mess.

Think of it this way: a strong business is like a well-maintained main branch with cleanly managed features. New ideas can be tested, bad ideas can be abandoned, and successful ideas can be merged into the core without destroying the whole system. A weak business is like a codebase where every fix is a patch on top of a patch, no one knows what is current, and the history has become impossible to trust.

That is why looking only at output is so dangerous. Revenue, like a commit, is evidence of activity. But activity is not the same as quality. You need to know whether the activity is compounding into something durable or just creating complexity that will eventually collapse under its own weight.


The 4Ms as a Decision Architecture, Not a Checklist

The 4Ms are often presented as a simple investing filter: understand the business, assess the moat, study the management, and verify the margin of safety. But the real power of the framework is not in memorizing four words. It is in recognizing that each one answers a different failure mode.

  • Business answers: Do I understand how this system creates value?
  • Moat answers: How easily can others duplicate or erode that value?
  • Management answers: Who is steering the system, and what do they do under stress?
  • Margin of safety answers: What happens if my understanding is incomplete?

Now compare that to Git.

  • Main branch answers: What is the stable core of the project?
  • Branches answer: How do we explore change without wrecking the core?
  • Commits answer: What changed, exactly, and when?
  • Tags and references answer: What milestones can we trust?
  • Merging, rebasing, squashing, cherry-picking answer: How should change be integrated, remembered, or isolated?

A good investor and a good engineer are both trying to avoid false certainty. They know that complicated systems need structure before judgment. They also know that structure is not bureaucracy. Structure is what makes learning possible.

A business without a moat is like a branch that anyone can overwrite. A business without wise leadership is like a repository where nobody knows who has permission to merge. A business you do not understand is like staring at a commit hash with no context. Technically present, but practically meaningless.

The 4Ms are not just about picking winners. They are about identifying systems that can survive contact with reality.


What Scalable Revenue and Clean Commit History Have in Common

One of the most useful ideas in the investing framework is scalability: can revenue grow faster than liabilities? That question is really about leverage. Can the system absorb growth without becoming proportionally more fragile?

Git asks a similar question in a different language. Can the project absorb change without becoming proportionally more fragile?

A scalable business can add customers, distribution, or product lines without every step requiring a linear increase in pain. A well-run repository can add features, fixes, and experiments without every step requiring a heroic rescue. In both cases, the test is whether complexity is being organized or merely accumulated.

Consider a simple analogy. Imagine two restaurants:

  1. The first has one signature dish, one supplier, and one chef who does everything.
  2. The second has multiple revenue streams, repeatable processes, and a team that documents changes in the kitchen so the operation can expand.

The first restaurant may look impressive on a good night. But it is brittle. A supply problem, chef illness, or trend shift can break it. The second may look less glamorous, yet it has built-in resilience.

Git works the same way. A project with every change made directly on the main branch can look efficient right up until the day a mistake spreads everywhere. A project with disciplined branching, frequent commits, and clear history may look slower, but it is actually more scalable because it can absorb risk.

This is the deeper connection: scale is not just growth. Scale is growth with controllable consequences.

That is why frequent commits matter. They do not merely save work. They create a system where change is inspectable. Likewise, a diversified business does not merely earn more. It creates a system where dependence is reduced and shock can be absorbed.


Moats, Branch Protection, and the Cost of Being Easy to Copy

If a business is easy to duplicate, it is vulnerable. If a code change is easy to confuse with the rest of the history, it is also vulnerable. The language differs, but the principle is identical: uniqueness must be defensible and traceable.

A brand moat is powerful because it changes the economics of competition. Coke, Visa, and Apple are not just products. They are trust structures. Customers do not merely buy the object in front of them. They buy the accumulated certainty that the object will remain useful, familiar, and supported.

In Git, a similar trust structure appears in commit history and references. Tags mark milestones. HEAD marks where you are now. Branches preserve parallel paths of thought. Signed commits add authenticity, because not every change should be treated as equally trustworthy.

This reveals something subtle: moats are not only barriers to entry. They are barriers to confusion.

That is why weak systems are so costly. A business with no moat invites imitation. A repository with no disciplined history invites confusion. In both cases, value gets diluted because outsiders, or even insiders, cannot easily tell what is core and what is incidental.

Think about cherry-picking in Git. It is useful when you need one specific change without importing everything else. That is exactly how intelligent capital should behave. You do not want to buy a whole story just because one part of it looks attractive. You want to isolate the element that is genuinely valuable and understand whether it can stand on its own.

Likewise, merging maintains both histories. That is a reminder that not all growth should erase the past. Good companies often preserve what made them reliable while integrating new capabilities. Bad companies rewrite their identity every quarter and then act surprised when no one trusts them.


Leadership Is the Commit Author, Not the Hype Machine

The most underrated part of the 4Ms is management. It is tempting to think leadership is about charisma, visibility, or confidence. But the real test is more practical and more revealing: What happens when mistakes occur?

Does the CEO take responsibility, or do they point fingers? Do they reduce noise, or manufacture drama? Do they make wise decisions consistently, or do they confuse motion with competence?

Git gives us a useful metaphor here. A commit is a claim. It says: this is what changed, and this is now part of the record. But not all commits deserve equal trust. Some are clean, intentional, and signed. Others are rushed, undocumented, and later regretted. A repository can survive a bad commit, but only if the history makes it possible to locate, isolate, and correct the error.

That is what good leadership does in a company. It makes errors recoverable.

Bad leadership hides mistakes, blames others, and turns every correction into a political event. Good leadership records reality clearly, learns quickly, and preserves the ability to course-correct. In that sense, management is less about inspiration than about integrity of history.

A CEO who creates drama on social media may entertain the market for a while, but drama is often just an attempt to substitute narrative for structure. The same is true in software teams where style matters more than traceability. If no one can tell what changed and why, the system may look energetic while quietly becoming impossible to maintain.

Leadership is not the ability to sound certain. Leadership is the ability to keep the system trustworthy when certainty disappears.


A Better Mental Model: Invest Like You Are Reading a Repository

Here is a practical way to unify these ideas.

When evaluating a business, imagine you are reading a repository you have never seen before. Do not begin with the latest commit, the flashiest release, or the loudest maintainer. Start by asking four questions:

  1. What is the main branch of value creation? What actually produces the outcome people pay for?

  2. How many independent ways can this system create value? Are there multiple revenue streams, or is everything dependent on one fragile pathway?

  3. How hard would it be to recreate this from scratch? Is there a moat, brand, network effect, or operational complexity that protects it?

  4. Can I trust the people maintaining the history? Do they make decisions cleanly, admit errors, and preserve credibility over time?

Now reverse the exercise for Git. When evaluating a repository, imagine you are assessing a business.

  1. Is the core understandable? Can you tell what the system is for?

  2. Are the branches disciplined? Can multiple experiments coexist without chaos?

  3. Is the history auditable? Can you see what changed and why?

  4. Do the maintainers protect trust? Are commits signed, conflicts resolved, and milestones marked clearly?

This mental model is powerful because it replaces vague impressions with structural questions. Instead of asking, “Do I like this?” you ask, “Can this system be trusted under change?” That is a much better question for both investing and engineering.


Key Takeaways

  1. Look for systems, not snapshots. A business or repository can look healthy in the moment while hiding structural fragility.
  2. Scale means absorbing change without proportional damage. In business, that means scalable revenue. In Git, that means disciplined branching, commits, and merges.
  3. Moats and clean histories both create trust. One protects against competition, the other protects against confusion.
  4. Good leadership preserves recoverability. Strong managers and maintainers make mistakes easier to find, explain, and correct.
  5. Use the same four questions everywhere. Ask what creates value, what protects it, how change is managed, and who can be trusted with the record.

The Real Lesson: Trust Is a Design Choice

The most surprising link between investing and Git is not technical. It is moral.

Both disciplines are ultimately about trust. Do you trust the business to keep creating value? Do you trust the history of the codebase to tell the truth? Do you trust the people in charge to protect the system when pressure arrives? Trust is not a feeling that appears after success. It is a property that gets built into systems through structure, discipline, and restraint.

That is why the best businesses often feel boring from a distance and resilient up close. That is why the best repositories often feel orderly rather than flashy. In both worlds, the goal is not to maximize excitement. The goal is to make change safe enough that progress can continue.

So the next time you look at a company, a project, or even your own work, ask a sharper question than “What have they done lately?” Ask instead: What kind of history are they creating, and how much damage can it absorb without losing its truth?

That question reveals far more than numbers or code ever could.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣