logoalt Hacker News

cerved • last Saturday at 11:33 PM • 2 replies • view on HN

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


Replies

wyager • last Sunday at 1:10 AM

> and teach Claude to not git add .

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

➕ show 1 reply
hakanbogan • last Sunday at 1:31 PM

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.