Skip to content

Instantly share code, notes, and snippets.

@curder
Last active March 7, 2019 10:22
Show Gist options
  • Save curder/375cbc839acc6a7f89e5653a50ef4a87 to your computer and use it in GitHub Desktop.
Save curder/375cbc839acc6a7f89e5653a50ef4a87 to your computer and use it in GitHub Desktop.
在mac系统下如何添加全局.gitignore
# .gitignore_global
####################################
######## OS generated files ########
####################################
.DS_Store
.DS_Store?
*.swp
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
.idea/
node_modules
.php_cs.cache
wget -O ~/.gitignore_global https://gist.githubusercontent.com/curder/375cbc839acc6a7f89e5653a50ef4a87/raw/955f6e21c96f2857ef4ca8e6c988ab73863c3c3a/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment