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
.gitignore
git ls-files -o --exclude-standard
Every path in your worktree that isn't staged (-o) and won't be ignored by git add (--exclude-standard).
-o
git add
--exclude-standard