git-apply将补丁应用到文件和/或暂存区,但不创建提交。 另请参阅:
git am。 更多信息:https://git-scm.com/docs/git-apply。
git apply {{[-v|--verbose]}} {{路径/到/文件}}
git apply --index {{路径/到/文件}}
curl {{[-L|--location]}} {{https://example.com/file.patch}} | git apply
git apply --stat --apply {{路径/到/文件}}
git apply {{[-R|--reverse]}} {{路径/到/文件}}
git apply --cache {{路径/到/文件}}