Have common files you don't want to version in any projects? -- put them in a global gitignore file! I don't know about you, but I'm sick of adding .DS_Store
or .vscode
to gitignore files on a per-project basis.
Run the following command in your terminal:
1git config --global core.excludesfile ~/.gitignore_global
1git config --global core.excludesfile ~/.gitignore_global
Now you can edit the ~/.gitignore_global
file just like any other, but it will apply everywhere.
Take a look at my global gitignore file to see if any of those would help you.