git合并远端commit

1.git log
2.git rebase -i 73ef2c340669d44c5d7fa05b3c5a3f3226258833 (a,b] 或 (a 不包含a
3.
:%s/pick/squash
第一行改为pick
4.修改commit
删除非注释行改commit为merge的commit
4.git push -f

原文地址:https://www.cnblogs.com/xiaohan970121/p/14871910.html