How to commit & push Magento's vendor directory file in Magento Cloud?
-
14-03-2021 - |
Question
I have made changes in,
Magento/vendor/magento/module-checkout/Model/PaymentInformationManagement.php
I have made changes in above file, But how can I commit these changes and PUSH it to Magento cloud as it will not show in git diff
.
Any idea how to push changes of vendor DIR files on Magento Cloud ?
Note : I don't want to override in my app directory as it is bug and I want fix it in direct file.
Solution
Changing file(s) in vendor directly is not a best practice. It's better if you create a patch for the changes, and apply the patch in your Magento Cloud.
To better understanding on how to create and apply patch, see this link.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange