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

后端 未结 5 2055
庸人自扰
庸人自扰 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:07

    TL;DR

    Your Project > Settings > General > Merge Request Settings > Fast-Forward Merge.

    Personally, I also prefer to do squash commits on every merge.


    I think GitLab supports this now.

    Steps

    1. Go to your project
    2. Navigate to project settings (Note: This is NOT the profile settings available on the top right)
    3. Go to General tab.
    4. Navigate to Merge Request Settings section
    5. Choose Fast-Forward Merge.

提交回复
热议问题