Say I start a git repository in a folder, and I have several subdirectories in it.
I have several globbing patterns .gitignore to exclude files in the s
Try:
git status -u
or the long form:
git status --untracked-files
which will show individual files in untracked directories.
Here's the detailed description of -u option from git-status man page:
-u[]
--untracked-files[=] Show untracked files.
The mode parameter is optional (defaults to
all), and is used to specify the handling of untracked files; when-uis not used, the default isnormal, i.e. show untracked files and directories.The possible options are:
no- Show no untracked filesnormal- Shows untracked files and directoriesall- Also shows individual files in untracked directories.The default can be changed using the
status.showUntrackedFilesconfiguration variable documented in git-config(1).