How can I make git show a list of the files that are being tracked?

git

Solution

To list all the files currently being tracked under the branch `master`, use `ls-tree`:

git ls-tree -r master --name-only

To list all files that have ever existed (i.e. including deleted files):

git log --pretty=format: --name-only --diff-filter=A | sort - | sed '/^$/d'

Problem

Using command line git, how can I make git show a list of the files that are being tracked in the repository?

Original source

Related problems