Hacker News new | ask | show | jobs
by cerved 27 days ago
Suggest adding it to ~/.config/git/ignore

and teach Claude to not git add .

While we're at it, maybe we can also discourage the spurious use of -f for rm -- me personal pet peave

2 comments

> and teach Claude to not git add .

It already doesn't do this. This is from users committing the `.claude` directory themselves.

Idk about these days but it used to
I also use global ignore, but I think the key is to keep secrets out of commands. I store mine in .dev.vars, which Wrangler reads automatically. For production, I use wrangler secret put and enter them myself. I also told Claude to never read that file.