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.

# Cache and logs (Symfony2)
/app/cache/*
/app/logs/*
!app/cache/.gitkeep
!app/logs/.gitkeep

# Cache and logs (Symfony3)
/var/cache/*
/var/logs/*
!var/cache/.gitkeep
!var/logs/.gitkeep

# Parameters
/app/config/parameters.yml
/app/config/parameters.ini

# Managed by Composer
/app/bootstrap.php.cache
/var/bootstrap.php.cache
/bin/*
!bin/console
!bin/symfony_requirements
/vendor/

# Assets and user uploads
/web/bundles/
/web/uploads/

# PHPUnit
/app/phpunit.xml
/phpunit.xml

# Build data
/build/

# Composer PHAR
/composer.phar

.idea
.vagrant
.DS_Store
Vagrantfile

 

Categories: Random

0 Comments

Leave a Reply

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