Git单独合并某次提交

一、查看reflog日志

//输入命令
git reflog

//得到提交记录
c803bc9 (origin/dev-2.0-darkness, dev-2.0-darkness) HEAD@{2}: commit: 状态监测布局优化调整
fee14d0 HEAD@{3}: commit: 组端电压&组端电流区分
4538555 HEAD@{4}: commit: 单体电压趋势接口整改,前端联调及逻辑变动
3906d2a HEAD@{5}: commit: 电压预警单体电压接口整改,前端联调及逻辑变动
1b6dd7d HEAD@{6}: commit: 电压预警组端电压接口整改,前端联调及逻辑变动
0a45389 HEAD@{7}: commit: 电压预警组端电压接口整改,前端联调及逻辑变动
f0ee7f3 HEAD@{8}: merge dev: Fast-forward
92894cc HEAD@{9}: checkout: moving from dev to dev-2.0-darkness
f0ee7f3 HEAD@{10}: commit: 温度预警曲线自适应
5fa43fb HEAD@{11}: commit: 温度预警接口优化整改,前端逻辑变动
477d0a7 HEAD@{12}: commit: 获取站点列表接口优化更换
4d3221f (HEAD -> dev, origin/dev) HEAD@{13}: commit: 拓扑图配色优化
fa646fe HEAD@{14}: commit: 角色管理站点权限不可编辑bug修改
60b35d4 HEAD@{15}: commit: 拓扑图相关修改9
3173e7a HEAD@{16}: commit: 拓扑图相关修改8
d51db77 HEAD@{17}: commit: 拓扑图相关修改8
6268ede HEAD@{18}: commit: 拓扑图相关修改7
b1a4279 HEAD@{19}: commit: 拓扑图相关修改6

二、记住要合并的commit id 例如合并 c803bc9 (origin/dev-2.0-darkness, dev-2.0-darkness) HEAD@{2}: commit: 状态监测布局优化调整 。输入以下命令即可

git cherry-pick c803bc9

你可能感兴趣的:(Git单独合并某次提交)