$ git ls-tree <another_branch_name> ----->displays the files which are available in another branch
$ git ls-tree <another_branch_name>
$ git ls-tree -r <another_branch_name> --name-only ---> displays only file names
$ git ls-tree -r <another_branch_name> --name-only