Vendor folder in .gitignore or not?

Notice: This thread is very old.
soundake
Member | 24
+
+1
-

Hi guys,

now I have all vendor folder in .gitignore file and everytime I'm switching branches, I must update all packages from composer. The reason is that I don't need to versioning external libraries – they are still somewhere in the cloud.

Do you thing is it good way? How do you manage your dependent libraries?

voda
Member | 561
+
0
-

Some people prefer to commit vendor folder to git some don't. Composer recommends to not commit them: The general recommendation is no.

CZechBoY
Member | 3598
+
0
-

We use composer.lock and we commit vendor directory.
Just because switching branches with different versions is problem.
Composer.lock is there just for know what version is installed and we can then easily upgrade libraries.

Šaman
Member | 2528
+
0
-

Just warning – there is problem that NetBeans 8.1 natively ignore vendor directories.
8.02 was fine and i hope next version fix it.

I gitignore composer's vendor, but another vendor is in /www from bower js/css packages and i dont ignore that.

Last edited by Šaman (2016-03-04 17:05)

Hurass
Member | 114
+
0
-

I prefer ignoring vendor folder (bower too).