How to Get a List of All Files That's been changed Between Two Git Commits

Itacen Sabacok | Oct 1, 2022

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