Can somebody please explain the concept of snapshots in git. I do understand who data can be stored as a series of changesets, but how is that different from snaphots in git. and why is it better this way?
The basic Git workflow goes something like this: (As taken from git documentation)
- You modify files in your working directory.
- You stage the files, adding snapshots of them to your staging area.
- You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory.