Skip to main content

A standard .gitignore for Symfony applications

I use phpStorm for most of my development unless I plan to get in and out very quickly, at which point I use SublimeText. phpStorm has a very useful tool to auto-generate a .gitignore file, but it doesn’t quite cover all the bases for my development environments (usually including Vagrant).

In either case, it’s always very useful to have a properly defined .gitignore so when you go to commit you’re not dealing with cleaning up files you didn’t want published, or silly environment files, docs, etc.