In an attempt to rebase my development branch with master, I ended up pushing commits that shouldn't have. Then in an awful attempt to revert the push, I performed a hard reset, and force pushed again. However, when creating a new pull request, I notice all the commits I didn't want still showing.
Here's what I did:
$ git checkout my_dev_branch
$ git rebase origin/master
$ resolved all conflicts
$ git add --all
$ git rebase --continue
$ git push origin my_dev_branch
I went to create a new pull request and saw a bunch of commits I didn't want. So, I did:
$ git revert -m 1 commit_hash <- did nothing
$ git reset --hard commit_hash_before_merge <- this worked
$ git push origin my_dev_branch
I went back to make a pull request, and still see all the commits I didn't want. Is there any way to remove those unwanted commits, or is it possible to get local my_dev_branch sync with a different local branch that I know don't have the unwanted commits?