Skip to main content
Submitted by manoj on 30 October 2022

patch

Patch is a file that consists of a list of differences. A patch file is basically a text file having a .patch extension 

 

How to apply a patch file

 

Apply patch using  composer.json

Step 1: open composer.json file

Step 2: search "extra"  section of composer.json

Step 3: 

"extra": {
    "patches": {
        "drupal/foobar": {
            "Patch description": "URL or local path to patch"
        }
    }
}

Step 4: composer install

 

Apply patch using  git

 

Apply patch using   curl -o

 

 Apply patch using  using  apply command