Edit Page

.gitignore

This file is only relevant if you are using git.

It informs git of any files that you don't want pushed to the remote server.

Files which match the splat patterns seen in the code below will be ignored by git. This keeps random crap and and sensitive credentials from being uploaded to your repository. It allows you to configure your app for your machine without accidentally committing settings which will smash the local settings of other developers on your team.

Some reasonable defaults are included, but, of course, you should modify/extend/prune to fit your needs!

Read more about .gitignore

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Anatomy of a Sails App