How to prevent Gitlab from creating extra merge commit on branch merge

后端 未结 5 2043
庸人自扰
庸人自扰 2021-02-13 02:16

I use GitLab in my project. I\'m exploring Merge Requests feature.

  1. I created a topic_branch from master.
  2. Made a bunch of commit
5条回答
  •  不知归路
    2021-02-13 03:00

    update currently gitlab supports both rejecting non-fast-forward commits and squashing multiple commits of a merge request, so my comment below isn't that valid anymore

    original content

    If you don't want to have a merge commit, don't do a merge. That means do a rebase on target branch (master) and a push.

提交回复
热议问题