git-ls-tree
List the contents of a tree object. tldr-pages
On several platforms
Several platforms
List the contents of the tree on a branch
git ls-tree branch_nameIdentifyList the contents of the tree on a commit, recursing into subtrees
git ls-tree -r commit_hashIdentifyList only the filenames of the tree on a commit
git ls-tree --name-only commit_hashIdentifyPrint the filenames of the current branch head in a tree structure (Note: tree --fromfile is not supported on Windows)
git ls-tree -r --name-only HEAD | tree --fromfileIdentifyTrips 1 Sigma rule: informationalFile and Directory Discovery - Linux by Daniil Yugoslavskiy, oscd.community, CheraghiMilad