Drupal 8 - Apply patch

By xngo on January 9, 2022

In Drupal environment, to apply patch, go to the root directory of the module/themes and then run the following:

patch -p1 < /to/file.patch

Reference: https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupal/applying-a-patch-in-a-feature-branch

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.