1git-hash-object(1) 2================== 3v0.1, May 2005 4 5NAME 6---- 7git-hash-object - Computes object ID and optionally creates a blob from a file. 8 9 10SYNOPSIS 11-------- 12'git-hash-object' [-t <type>] [-w] <any-file-on-the-filesystem> 13 14DESCRIPTION 15----------- 16Computes the object ID value for an object with specified type 17with the contents of the named file (which can be outside of the 18work tree), and optionally writes the resulting object into the 19object database. Reports its object ID to its standard output. 20This is used by "git-cvsimport-script" to update the cache 21without modifying files in the work tree. When <type> is not 22specified, it defaults to "blob". 23 24OPTIONS 25------- 26 27-t <type>:: 28 Specify the type (default: "blob"). 29 30-w:: 31 Actually write the object into the object database. 32 33Author 34------ 35Written by Junio C Hamano <junkio@cox.net> 36 37Documentation 38-------------- 39Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. 40 41GIT 42--- 43Part of the link:git.html[git] suite 44