Example .gitignore file

Here's an example .gitignore file for reference.

The concept of .gitignore file is simple, stuff in it doesn’t get added to Git. Lines starting with # are comments.

Exmple file

Here’s an example file that I always use:

npm_modules
bower_components
trash
Error.log
.DS_Store
.sass-cache
.tmp
.rvmrc
.trashes
*~

# Optional things
*.sublime-project
*.sublime-workspace
sftp-config.json

Further reading

Comments

Club-Mate, the beverage → club-mate.fi