1
0
mirror of synced 2025-12-20 10:28:40 -05:00

update links for searching code

This commit is contained in:
Jules Parker
2021-09-16 10:52:01 +02:00
parent 0561372d99
commit fea85ea057
5 changed files with 7 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ You can pin gists to your profile so other people can see them easily. For more
{% endif %} {% endif %}
You can discover {% ifversion ghae %}internal{% else %}public{% endif %} gists others have created by going to the {% data variables.gists.gist_homepage %} and clicking **All Gists**. This will take you to a page of all gists sorted and displayed by time of creation or update. You can also search gists by language with {% data variables.gists.gist_search_url %}. Gist search uses the same search syntax as [code search](/articles/searching-code). You can discover {% ifversion ghae %}internal{% else %}public{% endif %} gists others have created by going to the {% data variables.gists.gist_homepage %} and clicking **All Gists**. This will take you to a page of all gists sorted and displayed by time of creation or update. You can also search gists by language with {% data variables.gists.gist_search_url %}. Gist search uses the same search syntax as [code search](/search-github/searching-on-github/searching-code).
Since gists are Git repositories, you can view their full commit history, complete with diffs. You can also fork or clone gists. For more information, see ["Forking and cloning gists"](/articles/forking-and-cloning-gists). Since gists are Git repositories, you can view their full commit history, complete with diffs. You can also fork or clone gists. For more information, see ["Forking and cloning gists"](/articles/forking-and-cloning-gists).

View File

@@ -28,7 +28,7 @@ topics:
{% ifversion fpt or ghes %} {% ifversion fpt or ghes %}
- {% data reusables.search.required_login %}{% endif %} - {% data reusables.search.required_login %}{% endif %}
- {% data variables.product.prodname_pages %} sites are not searchable on {% data variables.product.product_name %}. However you can search the source content if it exists in the default branch of a repository, using code search. For more information, see "[Searching code](/articles/searching-code)." For more information about {% data variables.product.prodname_pages %}, see "[What is GitHub Pages?](/articles/what-is-github-pages/)" - {% data variables.product.prodname_pages %} sites are not searchable on {% data variables.product.product_name %}. However you can search the source content if it exists in the default branch of a repository, using code search. For more information, see "[Searching code](/search-github/searching-on-github/searching-code)." For more information about {% data variables.product.prodname_pages %}, see "[What is GitHub Pages?](/articles/what-is-github-pages/)"
- Currently our search doesn't support exact matching. - Currently our search doesn't support exact matching.
- Whenever you are searching in code files, only the first two results in each file will be returned. - Whenever you are searching in code files, only the first two results in each file will be returned.
@@ -46,7 +46,7 @@ You can search for the following information across all repositories you can acc
- [Topics](/articles/searching-topics) - [Topics](/articles/searching-topics)
- [Issues and pull requests](/articles/searching-issues-and-pull-requests){% ifversion fpt %} - [Issues and pull requests](/articles/searching-issues-and-pull-requests){% ifversion fpt %}
- [Discussions](/github/searching-for-information-on-github/searching-discussions){% endif %} - [Discussions](/github/searching-for-information-on-github/searching-discussions){% endif %}
- [Code](/articles/searching-code) - [Code](/search-github/searching-on-github/searching-code)
- [Commits](/articles/searching-commits) - [Commits](/articles/searching-commits)
- [Users](/articles/searching-users) - [Users](/articles/searching-users)
- [Packages](/github/searching-for-information-on-github/searching-for-packages) - [Packages](/github/searching-for-information-on-github/searching-for-packages)

View File

@@ -1,6 +1,6 @@
--- ---
title: Finding files on GitHub title: Finding files on GitHub
intro: 'You can search for a file in a repository using the file finder. To search for a file in multiple repositories on {% data variables.product.product_name %}, use the [`filename` code search qualifier](/articles/searching-code#search-by-filename).' intro: 'You can search for a file in a repository using the file finder. To search for a file in multiple repositories on {% data variables.product.product_name %}, use the [`filename` code search qualifier](/search-github/searching-on-github/searching-code#search-by-filename).'
redirect_from: redirect_from:
- /articles/finding-files-on-github - /articles/finding-files-on-github
- /github/searching-for-information-on-github/finding-files-on-github - /github/searching-for-information-on-github/finding-files-on-github
@@ -16,7 +16,7 @@ topics:
**Tips:** **Tips:**
- File finder results exclude some directories like `build`, `log`, `tmp`, and `vendor`. To search for files within these directories, use the [`filename` code search qualifier](/articles/searching-code#search-by-filename). - File finder results exclude some directories like `build`, `log`, `tmp`, and `vendor`. To search for files within these directories, use the [`filename` code search qualifier](/search-github/searching-on-github/searching-code#search-by-filename).
- You can also open the file finder by pressing `t` on your keyboard. For more information, see "[Keyboard shortcuts](/articles/keyboard-shortcuts)." - You can also open the file finder by pressing `t` on your keyboard. For more information, see "[Keyboard shortcuts](/articles/keyboard-shortcuts)."
{% endtip %} {% endtip %}

View File

@@ -35,7 +35,7 @@ With the `in` qualifier you can restrict your search to the repository name, rep
You can find a repository by searching for content in the repository's README file using the `in:readme` qualifier. For more information, see "[About READMEs](/github/creating-cloning-and-archiving-repositories/about-readmes)." You can find a repository by searching for content in the repository's README file using the `in:readme` qualifier. For more information, see "[About READMEs](/github/creating-cloning-and-archiving-repositories/about-readmes)."
Besides using `in:readme`, it's not possible to find repositories by searching for specific content within the repository. To search for a specific file or content within a repository, you can use the file finder or code-specific search qualifiers. For more information, see "[Finding files on {% data variables.product.prodname_dotcom %}](/search-github/searching-on-github/finding-files-on-github)" and "[Searching code](/articles/searching-code)." Besides using `in:readme`, it's not possible to find repositories by searching for specific content within the repository. To search for a specific file or content within a repository, you can use the file finder or code-specific search qualifiers. For more information, see "[Finding files on {% data variables.product.prodname_dotcom %}](/search-github/searching-on-github/finding-files-on-github)" and "[Searching code](/search-github/searching-on-github/searching-code)."
| Qualifier | Example | Qualifier | Example
| ------------- | ------------- | ------------- | -------------

View File

@@ -14,7 +14,7 @@ topics:
--- ---
To show forks in [repository search](/articles/searching-for-repositories) results, add `fork:true` or `fork:only` to your query. To show forks in [repository search](/articles/searching-for-repositories) results, add `fork:true` or `fork:only` to your query.
Forks are only indexed for [code search](/articles/searching-code) when they have more stars than the parent repository. You will not be able to search the code in a fork that has less stars than its parent. To show forks with more stars than the parent repository in code search results, add `fork:true` or `fork:only` to your query. Forks are only indexed for [code search](/search-github/searching-on-github/searching-code) when they have more stars than the parent repository. You will not be able to search the code in a fork that has less stars than its parent. To show forks with more stars than the parent repository in code search results, add `fork:true` or `fork:only` to your query.
The `fork:true` qualifier finds all results that match your search query, including forks. The `fork:only` qualifier finds _only_ forks that match your search query. The `fork:true` qualifier finds all results that match your search query, including forks. The `fork:only` qualifier finds _only_ forks that match your search query.