How to ignore .gitlab-ci.yml file when merging the branches

Hi I am creating different branches.I have a different setup in each Branch.

when i am merging both brnaches my gitlab-ci.yml file also merging and overwriting the changes of the target branch.

I want to exclude .gitlab-ci.yml file while merging 2 branches. is it possible? or is there any way I can make it templates?

I have the same problem. Do really nobody knows a ansswer?