Skip to content

jj

1 post with the tag “jj”

Are Git Commits States or Changes?

I recently got confused while I was using Git. Does each Git commit store states or changes? I remember they store states, but why do I sometimes feel they store changes/diffs?

A few years ago, I read The Design of Everyday Things, and learned the terms “conceptual model” and “mental model”. A conceptual model is a simple representation of how things work, and a mental model is the user’s internal understanding of it. When there’s a mismatch between the two, confusion arises and it might further lead to user errors.