I am having two branches on GitLab(1.Staging & 2.Production). In my Angular and NodeJS application there is one part(e.g. Contact us ), which I don't want to deploy on production.
I want it in staging branch but not in production branch.
So my question is how can I skip the specific code during merging of two branches in GitLab.
I am using Merge requests button for merging. but I have .gitignore, .gitattributes & .gitlab-ci.yml files.
Please help me, Thanks in advance