List the contents of the tree on a branch

git ls-tree

git ls-tree {{branch_name}}

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