less than 1 minute read

one can create gitignore files for specific repos and also globally.
github offers gitignore templates for lots of different things: frameworks, languages, editors, operating systems, etc. (link: github-ignore-templates).

the templates should be copied to some file (~/.gitignore_global) and applied with this command:
git config --global core.excludesfile ~/.gitignore_global

examples: