git-ls-tree, git-rev-list, git-rev-parse: add pages (#3644)
This commit is contained in:

committed by
Zlatan Vasović

parent
a5f91094dc
commit
a1a3faecb8
16
pages/common/git-ls-tree.md
Normal file
16
pages/common/git-ls-tree.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# git ls-tree
|
||||
|
||||
> List the contents of a tree object.
|
||||
> More information: <https://git-scm.com/docs/git-ls-tree>.
|
||||
|
||||
- List the contents of the tree on a branch:
|
||||
|
||||
`git ls-tree {{branch_name}}`
|
||||
|
||||
- List the contents of the tree on a commit, recursing into subtrees:
|
||||
|
||||
`git ls-tree -r {{commit_hash}}`
|
||||
|
||||
- List only the filenames of the tree on a commit:
|
||||
|
||||
`git ls-tree --name-only {{commit_hash}}`
|
Reference in New Issue
Block a user