参考这篇文章,蛮好的
https://www.cnblogs.com/mzy520/p/11282649.html
合并分支
https://blog.csdn.net/weixin_46048542/article/details/121111038