- By default, file finder results exclude some directories like
vendor. To search for files in these directories, use the
pathcode search qualifier. Alternatively, you can customize which directories are excluded by default using a
- You can also open the file finder by pressing
ton your keyboard. For more information, see "Keyboard shortcuts."
- On GitHub.com, navigate to the main page of the repository.
- In the “Go to file” search bar, type the name of the file or directory you'd like to find.
- Alternatively, if there is no "Go to file" search bar, click Go to file, then type the name of the file or directory you'd like to find.
- In the list of results, click the file or directory you wanted to find. You can view the file path for a directory or file below each search result.
By default, file finder results do not include files in the following directories if they exist at your repository root:
You can override these default exclusions using a
To do this, create or update a file called
.gitattributes in your repository root, setting the
linguist-generated attribute to
false for each directory that should be included in file finder results.
For example, the following
.gitattributes file would cause files in the
build/ directory to be available to the file finder:
Note that this override requires the use of the recursive glob pattern (
**). For more information, see "pattern format" in the Git documentation. More complex overrides of subdirectories within excluded-by-default directories are not supported.