This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-11-12. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Filtering files in a pull request

To help you quickly review changes in a large pull request, you can filter changed files.

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

You can filter files in a pull request by file extension type, such as .html or .js, lack of an extension, code ownership, or dotfiles.

Tip: To simplify your pull request diff view, you can also temporarily hide deleted files or files you have already viewed in the pull request diff from the file filter drop-down menu.

  1. Under your repository name, click Pull requests.
    Issues and pull requests tab selection
  2. In the list of pull requests, click the pull request you'd like to filter.
  3. On the pull request, click Files changed.
    Files Changed tab
  4. Use the File filter drop-down menu, and select, unselect, or click the desired filters.
    File filter option above pull request diff
  5. Optionally, to clear the filter selection, under the Files changed tab, click Clear.
    Clear file filter selection

Further reading

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.