I spotted this article a couple days ago, which shows some alternative places to list files you want to exclude from being tracked in a Git repository beyond the usual .gitignore. I knew about the global ~/.config/git/ignore, but never bothered with it. I probably should, though. The .DS_Store1 example is especially relevant. It always irks me to see those files in a local .gitignore. My tools and the various files they crap out shouldn't have anything to do with any individual repo, so why should I have to list them all in there ? I can understand listing the most common ones anyway when many people work on the code, to try and avoid mistakes by someone who didn't set his global config. But I can still try and prevent myself from telling the world about whatever trivial script I decided to use on my machine, and for a small project that only me will ever see, I just don't see the point having that info up on github. But the real gem is .git/info/exclude. I'm feeling lazy, so I'll…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.