GIT−HASH−OBJECT - Online Linux Manual PageSection : 1
Updated : 2023−03−13
Source : Git 2​.40​.0
Note : Git Manual

NAMEgit-hash-object − Compute object ID and optionally creates a blob from a file

SYNOPSISgit hash−object [−t <type>] [−w] [−−path=<file> | −−no−filters] [−−stdin [−−literally]] [−−] <file>​...‌ git hash−object [−t <type>] [−w] −−stdin−paths [−−no−filters]

DESCRIPTIONComputes 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> Specify the type (default: "blob")​. −w Actually write the object into the object database​. −−stdin Read the object from standard input instead of from a file​. −−stdin−paths Read file names from the standard input, one per line, instead of from the command−line​. −−path Hash object as it were located at the given path​. The location of file does not directly influence on the hash value, but path is used to determine what Git filters should be applied to the object before it can be placed to the object database, and, as result of applying filters, the actual blob put into the object database may differ from the given file​. This option is mainly useful for hashing temporary files located outside of the working directory or files read from stdin​. −−no−filters Hash the contents as is, ignoring any input filter that would have been chosen by the attributes mechanism, including the end−of−line conversion​. If the file is read from standard input then this is always implied, unless the −−path option is given​. −−literally Allow −−stdin to hash any garbage into a loose object which might not otherwise pass standard object parsing or git−fsck checks​. Useful for stress−testing Git itself or reproducing characteristics of corrupt or bogus objects encountered in the wild​.

GITPart of the git(1) suite
0
Johanes Gumabo
Data Size   :   7,739 byte
man-git-hash-object.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 180,376
Visitor ID   :     :  
Visitor IP   :   18.222.184.207   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.