github_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
github_notes [2022/08/30 17:31] – [code search] raju | github_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 -> " | ||
+ | |||
+ | ==== hide achievements on the github profile ==== | ||
+ | * Profile icon at the top right -> Settings -> Profile Settings -> "Show Achievements on my profile" | ||
+ | |||
===== dummy ===== | ===== dummy ===== | ||
==== links I came across ==== | ==== links I came across ==== | ||
Line 14: | Line 21: | ||
===== searching code ===== | ===== searching code ===== | ||
+ | ==== search files with extension ==== | ||
+ | < | ||
+ | foo path: | ||
+ | </ | ||
+ | |||
+ | ex:- | ||
+ | < | ||
+ | foo path: | ||
+ | </ | ||
+ | |||
+ | will search for '' | ||
+ | |||
+ | Ref:- https:// | ||
+ | |||
==== search in a particular file ==== | ==== search in a particular file ==== | ||
Use | Use | ||
Line 22: | Line 43: | ||
< | < | ||
python unittest filename: | python unittest filename: | ||
+ | </ | ||
+ | |||
+ | ==== exclude a repository from search results ==== | ||
+ | Add | ||
+ | < | ||
+ | -repo: | ||
+ | </ | ||
+ | to the search string. | ||
+ | |||
+ | Ref: | ||
+ | * https:// | ||
+ | |||
+ | ==== exclude forks from search results ==== | ||
+ | tags | do not search in forks | ||
+ | |||
+ | To exclude forks from your results: | ||
+ | < | ||
+ | NOT is:fork | ||
+ | </ | ||
+ | |||
+ | To search only fork repositories: | ||
+ | < | ||
+ | is:fork | ||
+ | </ | ||
+ | |||
+ | Example: | ||
+ | < | ||
+ | header_to_metadata_and_cell NOT is:fork | ||
+ | </ | ||
+ | will search for header_to_metadata_and_cell in non-fork repositories. | ||
+ | |||
+ | On 2026-01-26, '' | ||
+ | |||
+ | Ref: | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ===== search issues ===== | ||
+ | ==== search issues filed by a user ==== | ||
+ | For your own issues | ||
+ | < | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | For other users, there are two possible approaches. | ||
+ | |||
+ | Solution 1: | ||
+ | < | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | For example | ||
+ | < | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | Solution 2: | ||
+ | < | ||
+ | is:issue is:open author: | ||
+ | </ | ||
+ | for example | ||
+ | < | ||
+ | is:issue is:open author: | ||
</ | </ | ||
github_notes.1661880702.txt.gz · Last modified: 2022/08/30 17:31 by raju