Query
Exact match or RegEx
"some exact string"
/some.*pattern/
Code Block
function_name language:python
symbol:MyFunction language:go
Repo
repo:owner/repo_name "target string"
is:archived OR is:fork
User
user:seonglae push_to_hub OR user:seongland push_to_hub OR user:texonom push_to_hub
Path filtering
path:/src/**/*.py
path:*.ts
Query Syntax
Understanding GitHub Code Search syntax - GitHub Docs
You can build search queries for the results you want with specialized code qualifiers, regular expressions, and boolean operations.
https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax

Improving GitHub code search
Today, we are rolling out a technology preview for GitHub code search, the next iteration for search, discovery, and navigation on GitHub.
https://github.blog/2021-12-08-improving-github-code-search/

GitHub
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects.
https://github.com/search

GitHub Code Search (Preview)
GitHub Code Search (Preview)
https://cs.github.com/about

Seonglae Cho