Merge GIT branch without commit log

后端 未结 3 1582
栀梦
栀梦 2020-12-23 09:48

Currently when I\'m using GIT I create a branch for each job and make various commits before I\'m finished. I then merge back with my master branch and push upstream. I\'m l

3条回答
  •  不思量自难忘°
    2020-12-23 10:08

    I consider merge --squash extremely useful when I use a "branch per feature" approach. My commit history in temporary branches is a complete garbage, absolutely meaningless. And I really want to be unable to see that history anymore, not just to be able to skip it.

    When the commits go to code review, it is important not to create extra commits.

提交回复
热议问题