Git - Hash (Message Digest / Hash Object)

About

git uses as identifier a message digest

The hash is known as hash object because the whole git file system is based on objects

The function is available via the hash-object command

echo 'test content' | git hash-object -w --stdin
d670460b4b4aece5915caf5c68d12f560a9fe3e4

This hash is unique key that would be used to store it in the database


Powered by ComboStrap