git ls-tree
List the contents of a tree object.
- 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}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).