Skip to main content

This version of GitHub Enterprise was discontinued on 2023-07-06. 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.

Finding files on GitHub

You can search for a file in a repository using the file finder. To search for a file in multiple repositories on GitHub Enterprise Server, use the filename code search qualifier.

Tips:

  • By default, file finder results exclude some directories like build, log, tmp, and vendor. To search for files in these directories, use the filename code search qualifier.
  • You can also open the file finder by pressing t on your keyboard. For more information, see "Keyboard shortcuts."

Using the file finder

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.
  2. Above the list of files, click Go to file. Screenshot of a row of buttons on the main page of a repository. The "Go to file" button is outlined in dark orange.
  3. In the search field, type the name of the file you'd like to find. Screenshot of the search bar for finding a file in a repository. The search bar contains the term "readme" and under the search bar is a link to the file that is the result of the search, "README.md". The search bar is outlined in dark orange.
  4. In the list of results, click the file you wanted to find.

Further reading