All previous answers which I checked would list the files to be committed, too.
Here is a simple and easy solution that only lists files which are not yet in the
repo and not subject to .gitignore
.
git status --porcelain | awk '/^\?\?/ { print $2; }'
or
git status --porcelain | grep -v '\?\?'