Understanding Git Branches and Commits

People have many different ways to visualize Git branches, says Julia Evans, including the common “branch of an apple tree” metaphor. But intuition does not always exactly match reality.

To help clear up possible confusion, in this article, Evans explores the differences and similarities between this intuitive notion of a branch and how Git actually works. 

A key point is that “in Git, a branch is the full history of every previous commit, not just the “offshoot” commits,” Evans says. 

Learn more at Julia Evans blog.

See also: 

Looking for a job?
Sign up for job alerts and check out the latest listings at Open Source JobHub.

FOSSlife Newsetter

Comments