Bendy
Bendy

Reputation: 3576

Symfony3 and .gitignore

I've just tried cloning a Symfony3 project from github and realised it doesn't include /bin/ (as this was not required in Symfony2).

I have now updated my .gitignore to take out the /bin/ and /build/ directories to avoid this happening in future. Are there any other modifications that I'm missing that we should be making to a 'standard' Symfony3 .gitignore file?

My current content is as follows now:

/app/config/parameters.yml
/composer.phar
/vendor/
/web/bundles/
/var/
!var/cache/.gitkeep
!var/logs/.gitkeep
!var/sessions/.gitkeep
/phpunit.xml

Removed entries:

/bin/
/build/

Upvotes: 2

Views: 5192

Answers (1)

Alvaro Lopez Guerra
Alvaro Lopez Guerra

Reputation: 184

this is a file that i used in a project from which i pulled in differents computers and untill now no problems, just pull and composer commands etc. Hope it helps [i know is not perfect, any improves suggested are welcome]

/app/config/parameters.yml<br>
/build/<br>
/phpunit.xml<br>
/var/*<br>
!/var/cache<br>
/var/cache/*<br>
!var/cache/.gitkeep<br>
!/var/logs<br>
/var/logs/*<br>
!var/logs/.gitkeep<br>
!/var/sessions<br>
/var/sessions/*<br>
!var/sessions/.gitkeep<br>
!var/SymfonyRequirements.php<br>
/vendor/<br>
/web/bundles/<br>

Upvotes: 3

Related Questions