Permanently reversing a patch-file
You can use the tool interdiff(1) from patchutils. In particular, the man page for interdiff says: To reverse a patch, use /dev/null for diff2. So, $ interdiff -q file.patch /dev/null > reversed.patch The -q / –quiet prevents the insertion of reverted: lines.