Hacker News new | ask | show | jobs
by jacobparker 1957 days ago
You might be interested in:

git config --global core.excludesfile ~/.gitignore

You can have a system-wide (but local only) .gitignore. It doesn't help other people who clone your repo, but it can be useful in some situations.

1 comments

No need to change the config; the default global ignore file path is ~/.config/git/ignore
Ah, thank you.