Git · Senior · Question 7 of 76

What is Git moving to as an alternative to SHA-1, and why?

Explanation

The SHAttered attack (2017) produced a SHA-1 collision. Git uses a hardened SHA-1 that detects known attacks and supports SHA-256 repositories, with interoperability still evolving.

Further reading

Problem with a question

Git · Senior · question 7

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz