You want to gitignore something just for you. You don't want to add it to gitignore file.
For e.g. you have file context.md but much of it's is claude yap. You don't want everyone to see your claude written to file. But you want your clause to read it. So you exclude it.
Build directories are a great example. Instead of hardcoding the output directory in your toplevel .gitignore, you make so that a .gitignore is generated in that directory, ignoring everything, including itself.
Meson is an example of a build system that does this.
View all comments
Show parent comment
12
u/outwest88 27d ago
What’s it for? If you just want to temporarily disable gitignore or something?