So I ran git push
and when I went to the page on bitbucket to create the pull request, there were two commits there - mine, and someone else's. I only want to push my commit, I have no idea how the other commit got there. So I want to not create this pull request so I can go back and cherry pick my commit on another branch. But I can't figure out how to abort the pull request, or to undo my push.
CodePudding user response:
To "abort the pull request" : just close the browser tab you are in without clicking on the "Create" button.
You can modify your branch as you see fit on your local repo, and then force push your branch to bitbucket (git push --force-with-lease origin mybranch
).