List only the filenames of the tree on a commit

git ls-tree

git ls-tree --name-only {{commit_hash}}

click the source code to copy install git ls-tree on any operating system with command-not-found.com