3

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.

1 Answer 1

6

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.

5
  • Thanks for the answer :) Is it possible if I want to apply a patch for small amount of time and then remove it from server (Then How can I remove the patch ?) Sep 19, 2019 at 18:44
  • 1
    It depends on how you apply the patch. For example, if you use git apply <file.patch>, you can remove the patch using git apply -R <file.patch> Sep 19, 2019 at 18:47
  • 1
    Use the m2-hotfixes folder for your patches: devdocs.magento.com/guides/v2.3/cloud/project/…
    – BaDos
    Sep 30, 2019 at 20:24
  • Hey bro!! @RendyEkoPrastiyo Dec 27, 2019 at 12:05
  • @AdityaShah hi, what's up? Dec 31, 2019 at 2:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.