Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • The first bit is pretty basic math, just [size of alphabet]^[number of characters]. So 16^length. Any measures would likely have to be dug up from source code, though. Commented May 6, 2019 at 20:52
  • 2
    Possible duplicate of How does Git(Hub) handle possible collisions from short SHAs? Commented May 6, 2019 at 21:03
  • 1
    It really is just that bit of math. git internally only uses the long hash, collisions of the short hash don't matter. see stackoverflow.com/questions/7128444/… Commented May 6, 2019 at 21:04