logoalt Hacker News

Zambytetoday at 4:37 PM2 repliesview on HN

You can just add it in a user-level gitignore instead of ignoring it in every repo. See: ~/.config/git/ignore


Replies

saghmtoday at 4:42 PM

I only realized very recently that being able to specify .gitignore files in any part of a repo can be combined with wildcards to just put `.gitignore` with `*` in a arbitrary directories to make them get ignored without needing to modify any wider configuration.

der_gophertoday at 6:18 PM

yes, but user level is not a repo level