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
Inspired by @coffman21's answer I have setup the following alias in my .zshrc
alias gst="git status"
alias gst-staged="git status --short | grep '^\w.'"
alias gst-unstaged="git status --short | grep '^\W.'"
alias gst-unstaged-tracked="git status --short | grep '^\s.'"
alias gst-untracked="git status --short | grep '^??'"
It might be of use to anyone else. So adding it to the stack of answers.