I opened a draft pull request a while back to a repository that I don't have access to. I created the necessary branch and opened the request, and then stopped working on this issue for some time. Today, I returned to work on it and I accidentally did a "sync branch" on the development branch, which ended up merging the original repository's master into my development branch, thereby creating a new commit in the draft PR.
I tried to remove this commit by doing a hard reset followed by a force push, but this left the following message:
user force pushed 'dev-branch' from 84215ea to 97c8fd0 compare
I tried to get rid of this message by undoing the hard reset, but this resulted in the original master branch merge coming back. After that, I thought I'd try to do a "revert" on the original unwanted merge commit instead of a hard reset, but this left me with the following messages on my draft PR:
normal commit 97c8fd0
merge branch 'remote:master' into 'dev-branch' 84215ea
user force pushed 'dev-branch' from 84215ea to 97c8fd0 compare
revert "merge branch 'remote:master' into 'dev-branch'" cd39f73
Now, I would like to revert the state of my draft PR to just this:
normal commit 97c8fd0
How can I achieve this? (if it is possible)
Thanks!