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.
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.