So the situation is this: we have two protected branches in gitlab "develop", and "test" (over which we dont have permissions to push onto without merge requests), we merged the develop branch to test, deciding to squash the commits as we had to use 100+ commits to do something trivial due to architectural constraints, now after trying to once again merge from develop to test we end up with merge conflicts, of course as i am not very experienced in git and even less my understanding of it's mechanics, i researched about this in git documentation and it is pointed out that squashing commits between two long running branches is not recommended as it inevitably will cause these issues. What i am trying to figure out is, what is the cleanest way to go about:
- Solving the current merge conflicts
- Appease the branches so that in the future we'd be able to merge directly from develop to test and NOT from a branch of develop without running into merge conflicts as that goes against the policy we're given
- (Possibly) avoiding bloating the test branch commit history with all the junk from develop
The approach i was currently thinking of was making a separate branch from develop, opening a MR to "test" with it and solving the conflicts from there, then push that onto develop and then try to merge from develop to test, which however i am not sure would fix it, and also bring some of the "test" commits in the "develop" branch history. Is there a better course of action that will make less of a mess without having to contact repository administrators?