Patches are pieces of code that solve issues and describe changes between code states. There are easy and proper ways to create, apply, and submit patches using Git commands like git diff, git format-patch, git apply, and git am. When submitting a patch, Drupal has standards for file naming and the process involves submitting it for review and potential inclusion in the project.
3. “Patches are pieces of code that solve an existing
issue. In fact, patches describe the changes
between a before and after state.”
drupal.org/patch
ciandt.com
4. Patch example - https://www.drupal.org/files/issues/2809583-bootstrap-phpcs-fix-4.patch
ciandt.com