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:

pay in:name
pay in:name,readme,description
pay in:name 支付宝 in:description

Search by Stars and Forks

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

stars:>1000
stars:400..500

Example combining keyword search with star filter:

pay in:name 支付宝 in:description stars:>500

Search by fork count works the same way:

springboot forks:>3000

Awesome Search

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

awesome springmvc

Code Highlighting

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

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

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:

location:hangzhou language:java
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

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

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.