Command

git hash-object

Compute object ID; -w writes the object.

Formal Syntax & Structure

git syntaxgit
git hash-object --stdin
Git Reference