git diff --stat origin/master.. -> Gives the list of all the files from last commit

git log -2 -> gives list of last two commits

git show your-commit-id --name-only -> this will do the same as the above, get the commit_id from the above log

git reset --soft HEAD~1 -> Undo’s your last commit, this is the most important thing if you did git add . or any other git add file_name accidentaly

git diff --name-only -> shows unstaged changes, i.e not committed files

Saw the below drawing in a stackoverflow comment