If I read correctly git stores all it’s files in blobs. If you modify a file does the modified version of the file get it’s own blob and therefor it’s own sha?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s correct – if the file’s content changes even by a single bit, it will have a new object name (a.k.a. the SHA1sum or hash). You can see the object name that the file would have with
git hash-object, if you want to test that:You can find out more about how the hashes for blobs are calculated here: