Skip to main content

This version of GitHub Enterprise Server will be discontinued on 2026-08-25. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, GitHub Enterprise Support.

Closing a pull request

Close a pull request without merging it to manage unnecessary changes or address alternative solutions in other branches.

Tip

If you opened a pull request with the wrong base branch, instead of closing it and opening a new one, you can change the base branch. See Changing the base branch of a pull request.

  1. Under your repository name, click Pull requests.
  2. In the "Pull Requests" list, click the pull request you want to close.
  3. At the bottom of the pull request, below the comment box, click Close pull request.
  4. Optionally, delete the branch. This keeps the list of branches in your repository tidy.