
Thomas Rigby
Posted on • Originally published atthomasxbanks.com on
How to create a global .gitignore file
Unfortunately, this has happened to the best of us at some point, amirite?!
Inspired by this monstrosity, I decided to do some investigation!
Here is how to create a global.gitignore
file to define a list of rules for ignoring files inevery single Git repository on your computer…
touch ~/.gitignore_global echo node_modules >> ~/.gitignore_global echo .DS_Store >> ~/.gitignore_global echo .vscode >> ~/.gitignore_global git config --global core.excludesfile ~/.gitignore_global
For more handy git tips:RTFM 😉
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse