3 ms·
The light bulb moment for me learning git, which I don't see get mentioned nearly enough, was this: Stop thinking in terms of branches, and start thinking only
by jcparkyn 3y ago
The light bulb moment for me learning git, which I don't see get mentioned nearly enough, was this:
Stop thinking in terms of branches, and start thinking only in terms of commits. Pretty much every git operation makes so much more sense when you consider your repo just as a tree of commits (technically a DAG), rather that trying to reason about what it does to the branches. Branches are really just pointers to commits which can change over time, and most git commands don't really care about them.