I am working on Magento (not asking this on magento.stackexchange.com because it is more git related).
Sometimes it is unavoidable to change files from core theme.
It works (simplyfied) like this
- That is the core file:
vendor/magento/module-theme/view/frontend/templates/message.phtml - I copy it to
app/design/frontend/My/Theme/default/Magento_Theme/templates/message.phtml - Now I make a git commit of the file "Original taken from the core"
- Now I make my changes
- When upgrading to a new Magento version, the
vendor/magento/module-theme/view/frontend/templates/message.phtmlis probably updated (via composer, the file is not in my git) - Now I am looking for a way to either port the new changes from the core (from the vendor folder) to my custom file. Or to re-apply all my changes to a fresh copy from the core.
I was already pretty successful with creating a patch between my "Original taken from core" commit and the current version, copying the new original from core and applying the patch. I did all this manually and I am wondering if there is an more automated way.
