Something like the following will print the raw content, including the "$type $length\0" header: <!-- language: shell --> perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)' \ < .git/objects/27/de0a1dd5a89a94990618632967a1c86a82d577