I attended a lecture class there i understood that whenever a change is made in a file ,GIT doesn't store the diff rather it stores the new snapshot of the modified file in its new version. I have few questions :
- My understanding of the concept is correct or not ?
- if yes, then How storing entire file is better than storing diffs between two version of same file ?Is it not a wastage of space ?
- Why we need to add before doing a commit on a file, why cant it be done directly? (i know this is slightly off the hook)
please correct me if i misunderstood anything.