Why a different SHA-1 for the same file under windows or linux? Why a different SHA-1 for the same file under windows or linux? windows windows

Why a different SHA-1 for the same file under windows or linux?


Git adds a header ("blob ", the length, then null) before calculating the SHA-1. See this blog post for how to emulate the calculation outside git.