by ChrisMarshallNY · 5y ago · 0 comments
Clunky, but it works. I add things like server secrets and whatnot, there. I keep the file small, and usually add the contents to a secure note in 1Password, so there is version control, of a sort.
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.