6 ms·
> So yes, a commit is just a snapshot, a copy, it is simply saved in a much more efficient way. Not really. Although it might be helpful to explain to someone
by rualca 6y ago
> So yes, a commit is just a snapshot, a copy, it is simply saved in a much more efficient way.
Not really. Although it might be helpful to explain to someone entirely new to git that a commit marks a revision, and a revision is kind of a copy of a project folder, that mental model has no bearing to what a revision control does or helps you accomplish.
I mean, as soon as you talk about diffs and branches and cherry picks and merges then thinking about copies of a folder spread around does not explain what's happening.
And what's the point of git if not to track and manage diffs?
- globular-toast 6y ago> that mental model has no bearing to what a revision control does or helps you accomplish. It's exactly what revision control does and helps you to accomplish. What do you think revision control is for if not that?