Git merge flattening

前端 未结 3 1457
遥遥无期
遥遥无期 2020-12-08 00:46

If I am working in multiple branches on a single feature, I use git pull branch1 branch2 branch3 to pull all the changes into my master branch. However, all the

3条回答
  •  醉话见心
    2020-12-08 01:12

    You can use interactive rebase and "squash" the commits -- see also the Git Ready Tutorial on squashing via rebase. Sorry to just dump a link on you but that's a pretty thorough tutorial. Oh, and this will also squash away your merges just fine.

提交回复
热议问题