add new chinese translations
This commit is contained in:
20
pages.zh/common/git-ls-tree.md
Normal file
20
pages.zh/common/git-ls-tree.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# git ls-tree
|
||||
|
||||
> 列出树对象的内容。
|
||||
> 更多信息:<https://git-scm.com/docs/git-ls-tree>。
|
||||
|
||||
- 列出分支上的树的内容:
|
||||
|
||||
`git ls-tree {{branch_name}}`
|
||||
|
||||
- 列出提交上的树的内容,递归进入子树:
|
||||
|
||||
`git ls-tree -r {{commit_hash}}`
|
||||
|
||||
- 仅列出提交上树的文件名:
|
||||
|
||||
`git ls-tree --name-only {{commit_hash}}`
|
||||
|
||||
- 以树形结构打印当前分支头的文件名(注意:`tree --fromfile` 在 Windows 上不支持):
|
||||
|
||||
`git ls-tree -r --name-only HEAD | tree --fromfile`
|
Reference in New Issue
Block a user