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
Last revisionBoth sides next revision
github_notes [2022/09/13 16:58] – [search issues filed by a user] rajugithub_notes [2024/01/26 18:10] – [exclude a repository 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 the search results, you can append
 +<code>
 +NOT is:fork
 +</code>
 +
 +Example:
 +<code>
 +header_to_metadata_and_cell NOT is:fork
 +</code>
 +
 +On 2026-01-26, ''header_to_metadata_and_cell NOT is:fork'' gave 33 results vs 204 results for ''header_to_metadata_and_cell''
 +
 ===== search issues ===== ===== search issues =====
 ==== search issues filed by a user ==== ==== search issues filed by a user ====
github_notes.txt · Last modified: 2024/01/26 18:14 by raju