2016-07-19 git 两个commit的差异保存到本地 git diff patch 可以将两个commit的差异保存到本地 用法 将commit-a、commit-b两个commit的不同保存到文件PATCH_FILE中: 1git diff commit-a commit-b --patch > PATCH_FILE 将PATCH_FILE中的修改应用到当前分支中 1git apply PATCH_FILE 当然,可以更简单 1git diff commit-a commit-b | git apply Ancien 【学习笔记】ElasticSearch入门