In short, git migrated to a hardened SHA-1 hash after the SHAttered [1] attack became known.
However, in the future more attacks against SHA-1 may be found, so git is trying to future-proof itself.
However, even in the case a hash function is no longer cryptographically secure, git doesn't lose out completely, just losing signing and shorthand fetches over the git protocol.
This project focuses on git with SHA256 and SHA-1 interchangeability, but doesn't address the git protocol side of things yet, which can come later.
[0] https://github.com/git/git/blob/master/Documentation/technic...