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 [2023/12/25 07:52] – [search in a particular file] rajugithub_notes [2024/07/13 04:30] (current) – [links I came across] raju
Line 12: Line 12:
   * [[https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ | Token authentication requirements for Git operations]] (github.blog)   * [[https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ | Token authentication requirements for Git operations]] (github.blog)
     * Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.     * Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.
 +  * [[https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork | Syncing a fork]] (docs.github.com)
 +
  
 ==== useful links ==== ==== useful links ====
Line 23: Line 25:
 ==== search files with extension ==== ==== search files with extension ====
 <code> <code>
-path:*.extension+foo path:*.extension
 </code> </code>
  
Line 32: Line 34:
  
 will search for ''foo'' in .ipynb files 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 ====
Line 52: Line 56:
 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.1703490742.txt.gz · Last modified: 2023/12/25 07:52 by raju