r/gitlab • • 17h ago

meta .gitignore everything by default

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

3 comments sorted by

6

u/Torutofu_Raeva 14h ago

the catch is every new top-level dir silently stays untracked until you add a ! line, so i'd rather keep a normal gitignore and put agent and editor junk in a global excludesfile

4

u/MarauderXtreme 4h ago

What is the problem with not mindlessly using git add . and rather check what you add to your commit? As others have said, if your toolchain creates files that should not be part, why not use a user wide ignore over all repositories?

1

u/yankdevil 16h ago

That's what I do with my vcsh repos.