Skip to content

Instantly share code, notes, and snippets.

@cherts
Last active March 14, 2024 11:30
Show Gist options
  • Select an option

  • Save cherts/f2199ff38446e6860211e608c890216f to your computer and use it in GitHub Desktop.

Select an option

Save cherts/f2199ff38446e6860211e608c890216f to your computer and use it in GitHub Desktop.
Global Git excludes file
git config --global core.excludesfile ~/.gitignore_global
cat <<EOF > ~/.gitignore_global
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment