Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
useful commands handling Magento patches
# The patch contains binary data which makes most editors corrupt the file when saving
# use sed to remove lines - for example if you have deleted the downloader folder
sed -i '6573,6686 d'
# Find the line numbers for removing
# First mentioned number until the second to last
sed -n '/diff --git downloader/,/diff --git/{=;p;}'
# Check for frontend template changes
cat |grep 'diff --git app/design/frontend/base/default'
Copy link

on unix based systems like macOS the commands needs to be slightly different:

sed -ie '163,7736 d'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment