Skip to content

Instantly share code, notes, and snippets.

@anataliocs
Created May 28, 2026 21:25
Show Gist options
  • Select an option

  • Save anataliocs/30a90d89c75701dab74d3f0e456f45ea to your computer and use it in GitHub Desktop.

Select an option

Save anataliocs/30a90d89c75701dab74d3f0e456f45ea to your computer and use it in GitHub Desktop.
Global git ignore for MacOS .DS_Store files
touch ~/.gitignore_global
printf ".DS_Store\n.DS_Store?\n._*\n" >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global core.excludesfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment