Digging Deep into Git with 1 file in a single repository and 11 commits

Recently, I was conducting a session on git and branching and I was trying to explain the mental model. I didn’t do a very good job of it. I found an excellent post by Neil Atkinson called Git branches – Is your mental model wrong?. I tried to use the post, but it didn’t help […]

Fixing our mental model of Git Branches; it’s a straight line folks!

Recall From the last part, we learnt that: git tracks your code with a pointer called HEAD When you commit, you create a snapshot of your code with a unique commit ID which is a long alphanumeric string. When you checkout a particular commit, you move the HEAD (git’s pointer) to that commit. You can move […]