add new chinese translations
This commit is contained in:
16
pages.zh/common/git-cat-file.md
Normal file
16
pages.zh/common/git-cat-file.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# git cat-file
|
||||
|
||||
> 提供 Git 仓库对象的内容或类型和大小信息。
|
||||
> 更多信息:<https://git-scm.com/docs/git-cat-file>。
|
||||
|
||||
- 获取 HEAD 提交的大小(以字节为单位):
|
||||
|
||||
`git cat-file -s HEAD`
|
||||
|
||||
- 获取给定 Git 对象的类型(blob、tree、commit、tag):
|
||||
|
||||
`git cat-file -t {{8c442dc3}}`
|
||||
|
||||
- 根据类型对给定 Git 对象的内容进行美化打印:
|
||||
|
||||
`git cat-file -p {{HEAD~2}}`
|
Reference in New Issue
Block a user