今天跟代码,修改了vendor中的某些文件,然后撤销了,可能某些没有还原成原先的。yii2 的目录/vendor/ 是 gitignore 的,如何才可以将 /vendor 还原或者更新,使用 `composer 可否?
yii2
/vendor/
gitignore
/vendor
人生最曼妙的风景,竟是内心的淡定与从容!
Delete the vendor.. Then composer update --prefer-dist
shellcomposer update
shell
composer update
Next time, develop a good habit and try not to touch the code in the vendor. Only overwrite the reload. If you really need to make changes, make a backup first
Delete the vendor.. Then composer update --prefer-dist
Next time, develop a good habit and try not to touch the code in the vendor. Only overwrite the reload. If you really need to make changes, make a backup first