合并master时将多次提交合并为一次提交到master

git merge --squash branchname
使用这个命令就可以
记录一下

原文地址:https://www.cnblogs.com/zhangqian27/p/12691952.html