git ignore files (especially global)
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:
- macOS (link: github-ignore-macos)
- vim (link: github-ignore-vim)
- TeX (Link: github-ignore-tex)
- linux (link: github-ignore-linux)