System Grab Bag

View all TLDR pages from common (or from all pages)

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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.