F
F
fapchat2019-09-17 23:53:53
git
fapchat, 2019-09-17 23:53:53

How to add vendor folder to .gitignore?

composer require tightenco/collect

This command not only installs the dependency in the current project, but also automatically adds it to the require section of the composer.json file. This installation is local (there is no word global in the command), that is, the package is installed exactly in the current project. With this approach, dependencies are placed in the vendor folder, located at the root of the project. Don't forget to add this folder to .gitignore as the libraries are not part of your repository and are added as needed after cloning. The require section now looks something like this:

How to add a folder to .gitignore ? What does it mean?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
green_goo, 2019-09-17
@green_goo

gitignore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question