'How can I safely git rebase commit history in master

My new team has not been using git in the most efficient way and my lead asked me to clean up the repo. They all have been working off of master - not creating branches. There are many small commits in master. I created a new branch bug_rebase_history and rebased squashing commits until there was one commit per day. This decreased the commits in master from 465 to 180.

How can I create a merge request in the GitLab web interface that will merge this rebase in a way that won't just add the new squashed commits on top of the HEAD? Is there a safer way to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source