1. 程式人生 > >git 的 cat-file 的命令用法

git 的 cat-file 的命令用法

con 用法 ide bsp pre instead base ali pri

命令選項

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.

根據對象的類型,以優雅的方式顯示對象的內容

git 的 cat-file 的命令用法