How configure a global gitignore file?
A global gitignore is important for not add always the same information to ignore in our local repositories. If you want to configure this you should create a file with the information that you know that always will be ignore, for example I have created a file named ~/.global-gitignore in user path:
# Folder view configuration files.DS_StoreDesktop.ini# Thumbnail cache files._*Thumbs.db...Get fab’s stories in your inbox
Join Medium for free to get updates from this writer.
After to created this file only is need load this in git configuration, for to do this you could run this command in your console:
git config --global core.excludesfile ~/.global-gitignoreAnd, it’s ready. Now by default the extensions that you added in this file will be ignored in your repositories







