r/ProgrammerHumor • • Oct 10 '26

Meme noWayLol

Post image
11k Upvotes

118 comments sorted by

View all comments

Show parent comment

12

u/outwest88 Oct 10 '26

What’s it for? If you just want to temporarily disable gitignore or something?

26

u/thatashu Oct 10 '26

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 Oct 11 '26

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

12

u/the_horse_gamer Oct 11 '26

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

2

u/cleverboy00 Oct 11 '26

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.