Search code examples
yii2composer-phpvendor

Yii2 composer vendor


I've modified some files in one of vendor package and I know git will not commit those changes.

What would be the best approach to commit my change? Move Package out of vendor?

If I run composer update, I believe my updated code will be reverted?

Thank you for the help.


Solution

  • Yes when you run composer update your changes will be reverted.

    Use git add /vendor/package/editedfile.php, full path of file to upload live.

    But keep in mind this is not pure solution ;)