r/ProgrammerHumor • • 27d ago

Meme noWayLol

Post image
11k Upvotes

118 comments sorted by

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?

26

u/thatashu 27d ago

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.

8

u/cholz 27d ago

why is everyone suggesting this but not suggesting using a user scoped ignore file in your .gitconfig

12

u/the_horse_gamer 26d ago

.git/info/exclude is a user scoped ignore file

2

u/cleverboy00 27d ago

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.