2 ms·
I've slowly come to realise that many (perhaps even a majority as the blog suggests) think of commits as diffs. This is strange to me. You know that "report-v2
by globular-toast 3y ago
I've slowly come to realise that many (perhaps even a majority as the blog suggests) think of commits as diffs. This is strange to me.
You know that "report-v2-021119-final.doc" thing you see from people who don't use git? That's version control. That's all git is doing, except it gives you commit hashes, messages and tags instead of ad hoc filenames.
Diffs only come into play during rebases and cherry picking. Otherwise you can and should think of them as snapshots. But not because that's how git implements it. That is indeed irrelevant. You should think of them as snapshots because that's what they are. Because git is version control.