Created
August 21, 2023 21:37
-
-
Save timmc-edx/78431e0ac13428a26e5732a3c0e64122 to your computer and use it in GitHub Desktop.
Find colliding hash prefixes in a repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --branches --tags --format=format:%H | grep -Po '^.{7}' | sort | uniq -c | grep -v ' 1 ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment