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
Expected behavior:
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
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
@Saxea _Flowie_ What a great answer! Thank you so much. I hope to test it asap.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.