Skip to content

Code search not showing (or searching) the default branch? #136854

Discussion options

You must be logged in to vote

Hi @burgerenergy, thanks for your question. GitHub code search only indexes the default branch. The links produced by the results are permalinks to the Git tree when the result was indexed. We could link to the file in the default branch, but if the contents changed after your search, you wouldn't be able to find the match. By linking to the permalink, you'll always find what you searched for.

You can change to the default branch (or any other branch) using the selector you highlight in your screenshot.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by look
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly Code Search and Navigation Search, navigate, and understand code on GitHub Question
2 participants