Setting Up Global Git Ignore Rules
To setup a file with a list of items which should be ignored globally on your local system: git config –global core.excludesfile ~/.gitignore_global To view the currently set file: git config –get core.excludesfile My current file for use on macOS: