如何使用patch

以我剛好遇到的but為例

Emoji Scrub 模組出現錯誤訊息
Undefined index: summary File emoji_scrub/emoji_scrub.module, line 74(file: emoji_scrub/emoji_scrub.module, line 74)

參考此頁解決
https://www.drupal.org/project/emoji_scrub/issues/2694419

01.到模組根目錄
cd sites/all/modules/emoji_scrub/
02.下執及執行patch
curl https://www.drupal.org/files/issues/emoji_scrub-check-summary-key-exists-2694419-2-7.patch | git apply -v