wget -O ~/.gitignore_global https://gist.githubusercontent.com/curder/375cbc839acc6a7f89e5653a50ef4a87/raw/955f6e21c96f2857ef4ca8e6c988ab73863c3c3a/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
Last active
March 7, 2019 10:22
-
-
Save curder/375cbc839acc6a7f89e5653a50ef4a87 to your computer and use it in GitHub Desktop.
在mac系统下如何添加全局.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .gitignore_global | |
#################################### | |
######## OS generated files ######## | |
#################################### | |
.DS_Store | |
.DS_Store? | |
*.swp | |
._* | |
.Spotlight-V100 | |
.Trashes | |
Icon? | |
ehthumbs.db | |
Thumbs.db | |
.idea/ | |
node_modules | |
.php_cs.cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment