Ignore a file or directory on your Mac
Configure a file
❯ nano ~/.gitignore_global
Insert the file or directory into the .gitignore_global
.vscode/
.dccache
node_modules/
.env/
Apply to global git environment
git config --global core.excludesfile ~/.gitignore_global