Git: Ignore files for all repositories
You can create a “gitignore” that is applied to all the repositories. With this configuration you don’t have to copy and paste always the same files for your editor (for example).
Open your ~/.gitconfig and add or change to something like this:
[core]
excludesfile = ~/Dropbox/.global-gitignore
And create that file as if it is a normal .gitignore.
My global .gitignore is this:
.cargo/config
.DS_Store
parser.bin
*pyc
.rspec
.ruby-version
.vscode