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
to view staged files with code changes
git diff --staged
or using --cached which is synonym for --staged
git diff --cached
or to view only file names without code changes
git diff --staged --name-only
git-diff manual