Skip to content

Instantly share code, notes, and snippets.

@jayachandraoggy
Created November 17, 2020 05:49
Show Gist options
  • Save jayachandraoggy/f48bf4eae6cf463aec267bc208470b78 to your computer and use it in GitHub Desktop.
Save jayachandraoggy/f48bf4eae6cf463aec267bc208470b78 to your computer and use it in GitHub Desktop.
Step 1:
File to changed should be added to the git
git add -f vendor/dotmailer/dotmailer-magento2-extension/Api/Data/CouponAttributeInterface.php
Step 2:
Then make the changes to the core file
Step 3:
After making the changes run
git diff vendor/dotmailer/dotmailer-magento2-extension/Api/Data/CouponAttributeInterface.php > m2-hotfixes/webapi-fix.patch
This creates the patch in m2-hotfixes
Step4:
Finally apply the patch
git apply m2-hotfixes/webapi-fix.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment