2 ms·
This is exactly what euyyn is saying: create two files with the same SHA1 (by adding bytes of gibberish to an unused section), commit one to the repository, and
by victorNicollet 10y ago
This is exactly what euyyn is saying: create two files with the same SHA1 (by adding bytes of gibberish to an unused section), commit one to the repository, and now you have an collision available.
- mi100hael 10y agoThat's not how git uses hashes. In that scenario, there would still be a diff and hence git would recognize the files were different.