Answer the question
In order to leave comments, you need to log in
What is the correct way to use Composer along with GIT?
Greetings.
I thought about how best to use composer along with a remote repository.
Answer the question
In order to leave comments, you need to log in
Composer packages do not need to be placed in a repository (/vendor in .gitignore).
After installation, composer.json and composer.lock are committed.
Another developer simply does a composer install and installs what is missing.
composer update will update packages every time and rewrite composer.lock instead of just installing what's in composer.lock.
If someone does not have Composer installed, strongly demand to install it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question