創建一個新文件?`~/.gitignore`?,并將以下內容添加進去,這樣全部 git 倉庫將會忽略以下內容所提及的文件。
~~~
# Folder view configuration files
.DS_Store
Desktop.ini
# Thumbnail cache files
._*
Thumbs.db
# Files that might appear on external disks
.Spotlight-V100
.Trashes
# Compiled Python files
*.pyc
# Compiled C++ files
*.out
# Application specific files
venv
node_modules
.sass-cache
~~~