Global Gitignore
Complete .gitignore file for different IDEs
- Jetbrains
- VSCode
- Eclipse
Generated thanks to gitignore.io !
Tutorial
TLDR
$ mkdir -p ~/.config/git
$ git clone ssh://git@git.excilys.com:2022/vbilla/global-gitignore.git ~/.config/git
$ git config --global core.excludesfile ~/.config/git/.gitignore
Step by Step
- First we create a directory in which to put the global gitignore, I chose ~/.config/git but feel free to use any path you like.
$ mkdir -p ~/.config/git
- Then we clone the project (especially the .gitignore file) using ssh.
$ git clone ssh://git@git.excilys.com:2022/vbilla/global-gitignore.git ~/.config/git
- Finally we add the file to the global git config.
$ git config --global core.excludesfile ~/.config/git/.gitignore