I know if I want to get the list of all committed files in a particular commit if I know the commit hash or relative position from HEAD I can get the list of files using
git show --stat <commit-id> --names-only
or
git show --stat HEAD~n --names-only
but if I want to get list of all the files that have been committed till now since the first commit, how can I get them.
One possible way I can think of is to write a bash script ( or bash command) to loop over all the commits and run above command but I wanted to ask if there is any git way to achieve this thing?