git 的 cat-file 的命令用法

命令选项

git cat-file 的命令显示版本库对象的内容、类型、及大小信息。

-t 

Instead of the content, show the object type identified by object. 

显示对象的类型。

-s

Instead of the content, show the object size identified by object. 

显示对象的大小。

-e

Suppress all output; instead exit with zero status if object exists and is a valid object. 

如果对象存在且有效,命令结束状态返回值为0。

-p

Pretty-print the contents of object based on its type. 

根据对象的类型,以优雅的方式显示对象的内容

原文地址:https://www.cnblogs.com/mhq-martin/p/10339695.html