Several ways to patch
Author CodeAllen , please indicate the source
Single file, diff
diff and patch
file compare diff, patch
Multi-file, according to commit hit patch
git format-patch Usage
How to use git command to generate Patch and hit Patch