I have a fork of a repository by another person, which I also use as upstream in my local fork.
I pull requested (or how this is called) two commits to the upstreams master branch. They are not merged there yet. Later I fetched the latest changes from this upstream via the GitHub page, and pulled them into my local repo via GitHub Desktop. So now my GitHub page says my fork is three commits ahead of the upstream and my two commits are in my local repo, and the fetched commits after them.
The repo owner now asks me to pull request (or how this is called) these changes to another branch in his repo.
What is the proper way to undo the two pull requested, unmerged commits in the master branch? Can I just revert them in GitHub desktop, push the commits and close the pull request? Will this resolve everything in the other repo? And will this make the 'three commits ahead' message in my fork disappear?