I tried the solution from this question already Remove other peoples' commits on my branch after rebase gone wrong , but didn't work for me.
My commit log looks like this:
commit somehash123 (HEAD -> feature/Clean-Branch, origin/feature/Clean-Branch)
Author: Me
Date: Thu May 27 11:26:56 2021 +0200
#my commit
commit somehash123abc
Author:someone else
Date: Thu May 27 07:03:13 2021 +0000
#somebody elses commit
commit somehash123abc
Author: someone else
Date: Wed May 26 15:47:17 2021 +0200
#somebody elses commit
commit somehash123abc
Author: someone else
Date: Wed May 26 13:25:09 2021 +0000
#somebody elses commit
and I see 4 commits (one is mine and rest are not) in the Merge request I created in GitLab. I will not be merging to master but some other feature branch.
How can I have only my commit in the branch and MR (it is a bit confusing for the code reviewer to see the other commits)? I also tried to 'cherry-pick' just my commit into a new branch, but it shows merge conflicts for merging into the 'other feature branch'