Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

symfony2: should bootstrap.php.cache be in gitignore?

Tags:

git

php

symfony

I maintain a working copy of my symfony2 project on several machines, work on them at different times, always pulling the latest dev branch before I start working.

Now, I have the entire vendor directory in gitignore as I believe one should. But When I install my app on a new dev machine, it sometimes receives a more recent version of some vendor libs, since I don't update my vendors regularly on every machine.

This I believe results in a slightly different bootstrap.php.cache on each machine, so should I put that file in gitignore as well?

like image 883
Matt Welander Avatar asked Dec 09 '22 11:12

Matt Welander


1 Answers

It should be in your .gitignore.

I just installed new instance of Symfony 2.3.5 and /app/bootstrap.php.cache was included in .gitignore by default.

like image 103
Jovan Perovic Avatar answered Dec 11 '22 00:12

Jovan Perovic