git rebase

合并提交历史:
比如合并最近3次提交
git rebase -i HEAD~3

将需要合并的的记录改为s
保存退出后
git log 查看,确认合并后git push

原文地址:https://www.cnblogs.com/lajiao/p/15512256.html