After a pull request and merge from my remote origin branch to upstream, I deleted the branch from my remote, but I rename the local branch and keep working on it (which I think is the reason why I messed up). When I commit this local branch to remote origin and did a pull request to the upstream, my commits of the first pull request also appeared.
Are there ways to remove the old commit history from this pull request?
Or I have to close this pull request and rebase the local branch to the upstream before doing another pull request?