Fundamentals 9 min read

Master GitHub: Essential Terms, Precise Search, and Handy Shortcuts

Learn the most common GitHub terminology, how to perform precise searches using keywords, stars, forks, and the awesome list, and discover useful shortcuts for code highlighting, file navigation, and locating active users, enabling you to efficiently explore and leverage projects on the platform.

Sanyou's Java Diary
Sanyou's Java Diary
Sanyou's Java Diary
Master GitHub: Essential Terms, Precise Search, and Handy Shortcuts

Common GitHub Terms

When you first start using GitHub, you encounter several familiar but not fully understood terms. Below are the most frequently used ones.

Used by: number of users of the repository

Watch: set notification level for the repository

Star: like function

Fork: copy the project to contribute code

GitHub Precise Search

Before starting a project, consider whether you can find a basic structure on GitHub and modify it, or search for existing solutions while developing.

Search by Keywords

Example: you are building a shopping site and need a payment feature. Searching for "pay" returns over 60,000 results, many irrelevant. Use qualifiers to narrow the scope.

in:name – repository name contains the term

in:readme – README file contains the term

in:description – repository description contains the term

Examples:

<code>pay in:name</code>
<code>pay in:name,readme,description</code>
<code>pay in:name 支付宝 in:description</code>

Search by Stars and Forks

Filter repositories by star count using comparison operators or ranges, and similarly for fork count.

<code>stars:>1000</code>
<code>stars:400..500</code>

Example combining keyword search with star filter:

<code>pay in:name 支付宝 in:description stars:>500</code>

Search by fork count works the same way:

<code>springboot forks:>3000</code>

Awesome Search

The "awesome" keyword finds curated lists of tutorials, tools, and books. Example:

<code>awesome springmvc</code>

Code Highlighting

To highlight a specific line, append #L and the line number to the file URL. To highlight a range, use #Lstart-Lend .

<code>https://github.com/BlackmodeN/AwesomeBlog/blob/master/src/blog/dao/ArticleDao.java#L14</code>
<code>https://github.com/BlackmodeN/AwesomeBlog/blob/master/src/blog/dao/ArticleDao.java#L1-L14</code>

File Finder

Press T on a repository page to open the file finder, showing all files at once.

While viewing a file, press L to jump to a specific line number.

Press W to switch branches.

Search Active Users

Search for active developers by location and programming language. Example for Java experts in Hangzhou:

<code>location:hangzhou language:java</code>
GitHubsearchshortcutsCode Highlightingawesome listfile navigation
Sanyou's Java Diary
Written by

Sanyou's Java Diary

Passionate about technology, though not great at solving problems; eager to share, never tire of learning!

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.