git-hash-object
Compute object ID and optionally creates a blob from a file
- Provided by: git-man (Version: 1:1.9.1-1ubuntu0.10)
- Source: git
- Report a bug
Compute object ID and optionally creates a blob from a file
git hash-object [-t <type>] [-w] [--path=<file>|--no-filters] [--stdin] [--] <file>... git hash-object [-t <type>] [-w] --stdin-paths [--no-filters] < <list-of-paths>
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. This is used by git cvsimport to update the index without modifying files in the work tree. When <type> is not specified, it defaults to "blob".
-t <type>
-w
--stdin
--stdin-paths
--path
--no-filters
Part of the git(1) suite