Is there a way to reverse a patch on Netbeans?

Does simply copying the target file and repasting it will work?

Or can the patch affect mutliple modules and code?

  • A patch to core or a module? Is your code base under version control? – Brady Aug 26 '15 at 13:49
  • Usually a module, but core also. Info for both would be good. I don't fully understand version control, so I guess not, only patch the file on my computer with local host – Bruno Vincent Aug 27 '15 at 10:29
  • If you are not using version control for your site, then you will have to rely on the version history in Netbeans to revert a patch. – Brady Aug 27 '15 at 10:31
  • Version control explained: en.wikipedia.org/wiki/Revision_control – Brady Aug 27 '15 at 10:32
  • It is easier to patch with Drush, is it possible and reversible that way? – Bruno Vincent Aug 27 '15 at 10:40

Use patch to reverse

patch -p1 -R < path/to/patchfile

Use git to reverse

git apply -R path/to/patchfile

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.