Working on a project with a lot of team members, we are now trying to polish our ways of working. Currently all work is done in integration
branch which was branched off master
few years ago. For one reason or another, there are around 600 commits done in master branch and not merged into integration, as well as around 1200 commits done in integration not merged into master branch. All releases are made entirely off the integration branch, master branch was not touched once in a year. We would like to use master
branch as our stable branch, but in order to do so, we need to merge all the changes from integration
and not keep any of the diverged changes done in master.
Is there a headache free way to remove "invalid" commits from master branch? Or should we simply create a new repository or another stable branch off current integration position?
Update Unfortunately non-fast-forwards and remote branch deletion are rejected, I am still waiting for a response from the person in charge of the repository hosting. I'm assuming it will not be that easy to change, it's a big corporation sadly.