I have a git branch that has many commits and that was being merged with master regularly to resolve merge conflicts.
I wanted to rebase and did: git rebase master while on the branch, let's call it test_branch
but in order to rebase I have to resolve merge conflict on every commit.
Also when I git log I see mix of commit from master and test_branch and don't know how to squash properly
Is there a way I can remove all the commits on the branch, except the last one? And then rebasing it won't be even necessary
Edit: there is an open Pull Request on github, which ideally should be merged