SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this command.
git diff --cached --name-only
The --cached option of git diff means to get staged files, and the --name-only option means to get only names of the files.
--cached
git diff
--name-only