How to Cancel a Pull Request on Github?

Sometimes after creating a pull request, you may remember something and want to cancel your pull request that is not merged yet.

Fork a Github repository

To get rid of it, you can simply delete the branch from the remote repository by running the following command:


git push origin --delete your_branch_name