1git-hash-object(1) 2================== 3 4NAME 5---- 6git-hash-object - Compute object ID and optionally creates a blob from a file 7 8 9SYNOPSIS 10-------- 11[verse] 12'git hash-object' [-t <type>] [-w] [--stdin] [--] <file>... 13'git hash-object' [-t <type>] [-w] --stdin-paths < <list-of-paths> 14 15DESCRIPTION 16----------- 17Computes the object ID value for an object with specified type 18with the contents of the named file (which can be outside of the 19work tree), and optionally writes the resulting object into the 20object database. Reports its object ID to its standard output. 21This is used by 'git-cvsimport' to update the index 22without modifying files in the work tree. When <type> is not 23specified, it defaults to "blob". 24 25OPTIONS 26------- 27 28-t <type>:: 29 Specify the type (default: "blob"). 30 31-w:: 32 Actually write the object into the object database. 33 34--stdin:: 35 Read the object from standard input instead of from a file. 36 37--stdin-paths:: 38 Read file names from stdin instead of from the command-line. 39 40Author 41------ 42Written by Junio C Hamano <gitster@pobox.com> 43 44Documentation 45-------------- 46Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. 47 48GIT 49--- 50Part of the linkgit:git[1] suite