Master these GitHub search skills, and your development efficiency will double!

As a member of the IT industry, it is necessary to learn from other people's projects, so we usually refer to other people's projects from githubor above to learn and increase our own project experience
Gitee

But generally I still githublook at a lot of projects on the Internet. After all, the number of projects is there, but domestic access to github is sometimes slow, or can’t be accessed. Here I need to use the scientific Internet to recommend one that I have been using.

Here is a tool to access the outside world

But you really use github correctly, its functions are actually very powerful! ! !

github project search

keyword search

Enter keywords related to the technology you are interested in in the Github search bar, such as **"machine learning" or "web development"**

Note that the search keywords here need to be marked with English quotation marks

Search for a specific language

For example, we need to search for vue projects or java specified language projects,

Language filtering: Use the ** "language:" filter to limit the programming language of the search results. For example, "language:python".

In this way, all the items we search out are related to the specified Java language.

strats sort search

Sort by star rating: Use “stars:>”filters to sort results by star rating. For example, "stars:>10" will only show items with a star rating greater than 10.

update time search

Update Frequency: Use the **"pushed:>"** filter to sort the results by update date. For example, "pushed:>2021-01-01" will only show items updated since January 1, 2021.

more searches

  1. Contributor Search: Use the **"involves:"** filter to find projects involving the specified user. For example, "involved:username" will list the most recent projects that the user has been involved in.

  2. README search: use the **"in:name,description,readme"** filter to search the project name, description and all contents of the README file. For example, "in:name,description,readme python" will search for all items containing the keyword "python".

  3. Forks Search: Use the **"forks:"** filter to search for a specific number of forks. For example, "forks:>200" will only show projects with more than 200 forks.

  4. Sort by follower count: Use the **"followers:>"** filter to sort results by follower count. For example, "followers:>100" will only show items that have more than 100 followers.

  5. Search by License: Use the **"license:"** filter to search for a specific type of license. For example, "license:MIT" will only show projects using the MIT license.

Advanced Search

  1. Exclude results by keyword: Use the "-" symbol to exclude items that are not of interest. For example, "machine learning -tensorflow" would exclude items such as "tensorflow".

  2. Search by file type: Use the "filename:" filter to search by file type. For example, "filename:app.js" will only show projects with files named "app.js".

  3. Search by Domain: Add domain-specific terms after keywords to narrow your search. For example, "machine learning healthcare" would return machine learning projects related to the healthcare field.

  4. Search by project activity: Use the "activity:" filter to search for projects based on activity such as commits, issues, pushes, and challenges. For example, "activity:pushed" will only show items that were recently pushed.

  5. Search by developer type: Use the "user:" filter to search for projects with a specific developer type. For example, "user:github" will only show projects created by the GitHub organization.

  6. Use wildcards: Use " " to match any character and help search for items in case of uncertainty. For example, "docker api" will search for all projects with "Docker" and will return all projects containing "api".

  7. Search by item size: Use the "size:" filter to search by item size. For example, "size:>5000" will only show items larger than 5,000KB.

  8. Focus on specific areas: Use the GitHub Topics search function to focus on projects in specific areas. For example, searching for "Topic: React" will find all projects related to React.

  9. Use advanced search syntax: Advanced search syntax can help you filter out items that meet your requirements in more detail. For example, use "user:username" to search for a specific user's projects on Github.

  10. Use Shields.io: shields.io can help you generate some tags for the project, which are used to display key information of the project, such as the version of the project, license information, number of followers, etc. These tags can help you understand the project faster.

  11. Using Repository-metadata: The "repo-metadata" repository allows you to retrieve project metadata you may need in a formatted manner, including keywords contained in readme files, and names and email addresses of project members.

visual search

Of course, these are what we search directly through the search syntax, and we can also search through the visual interface on github

Click this search search criteria to search

GitHub must-have plugin

October

When browsing project code on GitHub, I often feel inconvenient. Every time you click on a file, the entire project file list will be hidden. If you want to view other files, you must go back and enter again. If the folder structure is complex, it is very troublesome to find it.

However, there is a tool called octotree that can solve this problem very well. It adds a button to the top left corner of the GitHub page that, when you click it, expands a menu showing the entire project's folder structure. With octotree, you can easily browse or download individual source files.

download link

When we install successfully, there will be this expanded directory structure on the left side of the github project

sourcegraph

If you think that octotree has solved the above problems well, then you will definitely like sourcegraph. sourcegraph is similar to a Web IDE, making browsing GitHub code a new experience.

Just click the sourcegraph button on the repository home page and you'll be redirected to the official sourcegraph website, which allows for deeper code exploration.

Sourcegraph allows you to perform full-text search, code jump, reference search and other functions on the code, so that you can benefit a lot when reading the code quickly. In addition, sourcegraph also provides some other tools that can be used to analyze code quality, evaluate code readability, and other issues. In conclusion, using sourcegraph, you can explore GitHub's code base in a more efficient way.

download link

Click here after installation is complete

When it comes to sourcegraph, the web page becomes a familiar interface similar to a local IDE

Variable definition, function call, code search, viewing file submission records and other functions are available, which is really convenient

github-file-icon

If you visit GitHub frequently, you may have noticed that the file icons displayed on GitHub are rather dull, which makes it difficult to distinguish different types of files. However, there is a plugin called github-file-icon that can help you with this. This plugin provides a set of very cool file icons to make the files look more intuitive and easy to distinguish different types of files.

Not only that, github-file-icon can also automatically identify projects in different languages ​​and frameworks, and display corresponding icons, such as Java, Python, React, etc. This way, users can identify file types at a glance without relying on filename suffixes.
Overall, the github-file-icon plugin provides a better file browsing experience, enabling you to better identify and manage your codebase.

download link

It is commendable that github-file-icon can be perfectly combined with Octotree

Git History

Git history allows us to view the commit history more elegantly, and can show the evolution of the code in the form of a timeline. Select a file in the repository to see

isometric-contributions

In addition to the tools mentioned above, there is also a very interesting Chrome extension called Isometric Contributions on GitHub.

This extension can convert the number of your daily contributions into a three-dimensional histogram with different colors, and give your own statistics. Through this extension, the daily submission record is displayed in a graph, which allows you to see your contribution status more intuitively.

For these data, Isometric Contributions will also count your submission status within a year, the number of submissions on the busiest day, etc., so that you can understand your workload more clearly. Switching between the normal Github contribution table and the isometric pixel art version, with the number and number of commits per commit graphically displayed, is fun and rewarding. In short, this plugin allows you to see your code contribution status more intuitively, and enjoy a beautiful visual presentation of the submission records.

download link

Prepare to make a set of your own development scaffolding templates from scratch, and pay attention to public programmers for three hours

Later, I will do a series of github excellent project appreciation and learning

Guess you like

Origin blog.csdn.net/u011738045/article/details/130513159