—
NAME
git-hash-object - Compute object ID and optionally create an object from a file
SYNOPSIS
bash
git hash-object\n [-t <type>] [-w] [--path=<file> | --no-filters]
\n
[--stdin [--literally]] [--] <file>...
\ngit hash-object\n [-t <type>] [-w] --stdin-paths [--no-filters]DESCRIPTION
Computes the object ID value for an object with specified type with the contents of the named file (which can be outside of the work tree), and optionally writes the resulting object into the object database. Reports its object ID to its standard output. When <type> is not specified, it defaults to "blob".
OPTIONS
-t <type>
-w
--stdin
--stdin-paths
--path
--no-filters
--literally
GIT
Part of the git(1) suite