List files which are and are not under version control
To get a list of all the files which are under version control,
To list the files in or under the current directory which are not
under version control, which are deliberately being ignored
.gitignore, for example object (
git ls-files --others --ignored --exclude-from=.gitignoreor
git clean -Xn
See Show ignored files in git.