This is great, and nicely written up in the context of agentic repos etc, but presumably no-one reads the official docs, right: <a href="https://git-scm.com/docs/gitignore" rel="nofollow">https://git-scm.com/docs/gitignore where the multiple ways of ignoring files are clearly stated?
So many people treat git commands like magic words, and then are terrified when they mess up their repo (example in this xkcd... <a href="https://xkcd.com/1597/" rel="nofollow">https://xkcd.com/1597/)
I'd wager a small sum that git is the tool most of us learned by accident, some of them fortunate, some less so. Thankfully, this one was the former.
Do the reading b/c there's a machine that has done all the reading so it's hard to add value if you maintain the anti-intellectualism of 2010s software dev.
Until Claude suggested .git/info/exclude, it never crossed my mind to question how ignoring worked. A search would have answered it in seconds, but you have to think to ask first. I didn't, and I suspect most people don't either. Especially with git, which nearly everyone learns by doing; very few of us ever sit down and learn it properly.
That's why I wrote it up: so a few more people can learn this the way we learn everything else in git, by accident.
Now that you mention it, I should add a link to those docs in the article. Thanks!
This is true, using AI to help discover better ways of working with stuff is pretty epic, reading docs are about as exciting as writing docs, esp when you are trying to get something done.
6LLvveMx2koXfwn · · focus · HN ↗
alexpotato · · focus · HN ↗
"Do the reading b/c you would be amazed how many people don't do the reading"
bigfishrunning · · focus · HN ↗
Reading documentation is a superpower
faithraven · · focus · HN ↗
1718627440 · · focus · HN ↗
coldpie · · focus · HN ↗
windward · · focus · HN ↗
stephbook · · focus · HN ↗
fortran77 · · focus · HN ↗
faithraven · · focus · HN ↗
Now that you mention it, I should add a link to those docs in the article. Thanks!
onaclov2000 · · focus · HN ↗
gritzko · · focus · HN ↗
BeetleB · · focus · HN ↗