User Tools

Site Tools


github_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
github_notes [2022/09/13 16:58] – [search issues filed by a user] rajugithub_notes [2024/01/26 18:14] (current) – [exclude forks from search results] raju
Line 1: Line 1:
 +===== favorite configuration =====
 +==== show private contributions on the github profile ====
 +  * Profile icon at the top right -> Settings -> Contributions & Activity -> "Include private contributions on my profile" -> check -> "Update preferences"
 +
 +==== hide achievements on the github profile ====
 +  * Profile icon at the top right -> Settings -> Profile Settings -> "Show Achievements on my profile" -> uncheck -> "Update preferences"
 +
 ===== dummy ===== ===== dummy =====
 ==== links I came across ==== ==== links I came across ====
Line 14: Line 21:
  
 ===== searching code ===== ===== searching code =====
 +==== search files with extension ====
 +<code>
 +foo path:*.extension
 +</code>
 +
 +ex:-
 +<code>
 +foo path:*.ipynb
 +</code>
 +
 +will search for ''foo'' in .ipynb files
 +
 +Ref:- https://stackoverflow.com/questions/59909592/how-can-i-search-all-files-ending-with-the-file-extension-feature-on-github
 +
 ==== search in a particular file ==== ==== search in a particular file ====
 Use Use
Line 33: Line 54:
 Ref: Ref:
   * https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#exclude-certain-results - documents the '-' operator.   * https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#exclude-certain-results - documents the '-' operator.
 +
 +==== exclude forks from search results ====
 +tags | do not search in forks
 +
 +To exclude forks from your results:
 +<code>
 +NOT is:fork
 +</code>
 +
 +To search only fork repositories:
 +<code>
 +is:fork
 +</code>
 +
 +Example:
 +<code>
 +header_to_metadata_and_cell NOT is:fork
 +</code>
 +will search for header_to_metadata_and_cell in non-fork repositories.
 +
 +On 2026-01-26, ''header_to_metadata_and_cell NOT is:fork'' gave 33 results vs 204 results for ''header_to_metadata_and_cell''
 +
 +Ref:
 +  * https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax#is-qualifier - documentation
 +  * https://github.com/orgs/community/discussions/13126
 +
 ===== search issues ===== ===== search issues =====
 ==== search issues filed by a user ==== ==== search issues filed by a user ====
github_notes.1663088291.txt.gz · Last modified: 2022/09/13 16:58 by raju