git cat-file 的命令显示版本库对象的内容、类型、及大小信息。git
-t ide
Instead of the content, show the object type identified by object. 对象
显示对象的类型。it
-ssed
Instead of the content, show the object size identified by object. object
显示对象的大小。file
-eco
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.
根据对象的类型,以优雅的方式显示对象的内容