To find the name of all files modified since your last commit:
1git diff --name-only
To list all staged tracked changed files:
1git diff --name-only --staged
To list all staged and unstaged tracked changed files
1{ git diff --name-only ; git diff --name-only --staged ; } | sort | uniq
To list all untracked files (the ones listed by git status, so not including any ignored files): To list all staged and unstaged tracked changed files
1git ls-files --other --exclude-standard