Gitignore template and Git Remove .DS_Store from commits.

.gitignore

/.buildpath
/build/
*/archive/

__MACOSX
.DS_Store

.project
.settings
.classpath
.sass-cache/

# OS generated files #
######################
*/.DS_Store
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# Modules, components, dist, tmp #
##################################
node_modules
bower_components
dist
.tmp
.sass-cache

This is nice to remember.

$ git rm --cached .DS_Store

Leave a Reply

Your email address will not be published. Required fields are marked *