Create
cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 
Sign up Log in

Merged tag not visible in commits history when merging branches

Maciej Kuran-Janowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2023

Hey there πŸ˜‰.

As in the question title, merged tag is not visible in the commits history when merging branches. Sometimes it shows `MERGED` tag but often not.

 

STEPS TO REPRODUCE THE PROBLEM:

Scenario: I am done with branch `GR-115` and want to merge to `develop`. I `commit` and `push` all the changes to remote `GR-115` branch. Then I follow the steps:

git checkout develop
git fetch origin develop
git pull origin develop
git merge GR-115
git push origin develop

What we see in the Bitbucket remote repo -> Commits tab

bitbucket-before-merge.png

bitbucket-after-merge.png

 

Expected behavior: 

bitbucket-merged.png

We would like to know what causes the issue and why sometimes the `MERGED` tag is visible and why often not. Having this tag displayed really helps to understand what's going on in commits history and gives a clear picture. I would appreciate your help :)

Thank you in advance,

Maciej

1 answer

1 accepted

3 votes
Answer accepted
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2023

The "merged label" is to indicate this is a merge commit. When it doesn't appear, it is because it was able to do a fast-forward merge.

You can ask git to create a merge commit even if it can fast-forward by doing:

git merge --no-ff GR-115

You can also set this as the default behaviour with:

git config --global merge.ff no
Maciej Kuran-Janowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2023

@Saxea _Flowie_ What a great answer! Thank you so much. I hope to test it asap.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events