Merge Commits #149

Closed
opened 2026-02-17 11:49:45 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @dsbert on GitHub (May 24, 2022).

Is there any recommendation for how merge commits should be formatted?

My team uses gitlab, which generates merge commits with the following default template.

Merge branch '%{source_branch}' into '%{target_branch}'

%{title}

%{issues}

See merge request %{reference}

I was considering the following.

merge: '%{source_branch}' into '%{target_branch}'

%{title}

%{issues}

Merge-request: %{reference}

Originally created by @dsbert on GitHub (May 24, 2022). Is there any recommendation for how merge commits should be formatted? My team uses gitlab, which generates merge commits with the following default template. ``` Merge branch '%{source_branch}' into '%{target_branch}' %{title} %{issues} See merge request %{reference} ``` I was considering the following. ``` merge: '%{source_branch}' into '%{target_branch}' %{title} %{issues} Merge-request: %{reference} ```
Author
Owner

@damianopetrungaro commented on GitHub (May 24, 2022):

Hey @dsbert !
merge commit should not exist IMHO :)

I do suggest you take a look at the rebase merge, which fixes the issue of having merge commits.

@damianopetrungaro commented on GitHub (May 24, 2022): Hey @dsbert ! merge commit _should_ not exist IMHO :) I do suggest you take a look at the rebase merge, which fixes the issue of having merge commits.
Author
Owner

@MAHDTech commented on GitHub (Jun 30, 2022):

In GitLab you can also change the default to Fast-forward merge which will rebase as mentioned above to stop those commits appearing.

image

@MAHDTech commented on GitHub (Jun 30, 2022): In GitLab you can also change the default to Fast-forward merge which will rebase as mentioned above to stop those commits appearing. ![image](https://user-images.githubusercontent.com/16071195/176578504-2eb7cf63-9d8d-4d9c-90b3-c1bc17da0d8c.png)
Author
Owner

@damianopetrungaro commented on GitHub (Sep 7, 2022):

Closing this, @dsbert let me know if you have any other doubt!

@damianopetrungaro commented on GitHub (Sep 7, 2022): Closing this, @dsbert let me know if you have any other doubt!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/conventionalcommits.org#149