I want to remove the custom patch applied to the cloud.


What do you mean with remove ? If you want to revert it , use this :

git apply -R <path to name-of-the-patch.patch>

Hard Way

If you applied a patch ,definetly you have added it with composer , so when the patch was generated , he modified the vendor . If , for example you have made a patch that have modified vendor/magento/module-catalog , you have to remove

rm -rf vendor/magento/module-catalog

Open composer.json , find the correct name of the patch applied in composer.json and remove the line.

Run composer install to regenerate the composer.lock and vendor.

  • Thanks for the reply, Yes I want to revert it. But using this I am getting some errors. – Karthi Feb 20 at 10:18
  • what errors ? Update your question please – Ylgen Guxholli Feb 20 at 10:19
  • In Magento cloud, we can't use this command? – Karthi Feb 20 at 10:37
  • Updated my answer , check please. – Ylgen Guxholli Feb 20 at 10:58
  • But one problem we don't have permission to delete or update in cloud – Karthi Feb 21 at 4:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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