I would like to get a list of only the staged filenames. I can\'t find the equivalent flag for --name-only for the git status command. What is a go
--name-only
git status
Use git diff --name-only (with --cached to get the staged files)
git diff --name-only
--cached