List added files which are not yet commited

Posted . Visible to the public.
git diff --cached --name-only --diff-filter=A 

will list all the files added since HEAD which don't exist in HEAD.

--name-only it'll list all the files changed in the index relative to HEAD
--name-status get the status symbol too
--diff-filter specify which set of files you want to show ('A'for newly added files, -M to turn on move detection, -C for copy detection)

Alternative

git status
kiatng
Last edit
Posted by kiatng to Git (2014-04-30 13:07)