L
L
lolrofl012018-10-26 14:47:33
Composer
lolrofl01, 2018-10-26 14:47:33

Why is /vendor added to laravel git ignore?

Can you please explain why vendor is added to git ignore by default in all gitignore files for lara (at least on github)? I understand that vendore contains system files, but various dependencies are added during the development process, which also end up in /vendor. Isn't it easier to restore all the files at once when restoring an early commit, rather than writing a composer update so that it reloads everything necessary in /vendor?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-10-26
@lolrofl01

Dependencies get into composer.json
. It is for this purpose that it was created so as not to store tons of code in your git or somewhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question