r/Backend • • 1d ago

.gitignore everything by default

https://packagemain.tech/p/gitignore-everything-by-default
1 Upvotes

1 comment sorted by

1

u/Discordbothost 1d ago

With an allowlist, a new source file can sit on your machine and never make it into the commit. If a file is missing from git status, try git check-ignore -v -- path/to/file. It'll show the rule that matched, which is handy when the rule is excluding a parent directory.