Due to how we have automagically handled deploying through our many kubernetees clusters when I'm doing development I'm doing it on my personal branch instead of a branch named after the bug (it's easier to automate deploying and view it on a branch I regularly maintain). I also find myself occasionally doing pointless commits not because I think the code is in a good state but because I need to trigger a new automated deploy.
The net result is I end up with a personal branch with good working code, but with a bunch of ugly/pointless commits cluttering up it's history. I'm wondering if there is a cleaner way to move from my personal branch to the bug branch I'll do the merge request on? I want to transfer all my code changes, but not any of the commit history since I last split off from develop.
Is there a quick/clean way to do this?