Summary of GitHub search skills

Time:2022-1-14

Welcome to my GitHub

https://github.com/zq2599/blog_demos

Content: classification and summary of all original articles and supporting source code, involving Java, docker, kubernetes, Devops, etc;

About search

  • For myself, this is an important late note. GitHub is a treasure house. Improper search methods may pass by precious code, so I classify and summarize the common search methods for emergencies;
  • Generally speaking, common personal search methods are divided intoauthorandcontentThe two are simply classified according to their own habits, as shown in the following figure:

在这里插入图片描述

  • Although search is more commonly used, it starts with the author search based on the principle of easy before difficult;

Author search

  • As shown in the red box below, GitHub account can set its ownfullname, we can accurately search for individuals through this field:

在这里插入图片描述

  • Enter in the upper left corner of the pageFullname: programmer XinchenThe author can be searched, as shown in the following figure:

在这里插入图片描述

  • Many GitHub accounts will set their own addresses, as shown in the red box below. These can also be used as conditions for finding people:

在这里插入图片描述

  • For example, searchtom, there will be many with the same name:

在这里插入图片描述

  • If we know that the Tom we are looking for is in Shenzhen, we can greatly narrow the search scope. The keyword isfullname:tom location:shenzhen, only 22 results:

在这里插入图片描述

  • The above is the operation of searching users, followed by the more commonly used content search elements;

Content search overview

  • There are slightly more parameters when searching for content. According to usage habits, I can simply divide this into three categories:
  1. Exact: the format isLanguage: complete keywords, such aslanguage:java
  2. Fuzzy: fuzzy matching similar to string. The format isIn: condition name keyword, such asin:name spring-boot
  3. Range: related to the quantization range. The format isCondition name: > quantity, often used with other conditions, such asin:name spring-boot stars:>10000
  • Next, we will elaborate on the above three types of search;

accurate

  • The most commonly used exact search is to specify the language type. First, when the language type is not specified, the search is performedBreakpoint continuationThe results are shown in the figure below. All languages have:

在这里插入图片描述

  • If you only need the Java language, useBreakpoint continuation language: JavaSearch, and the results are as follows:

在这里插入图片描述

vague

  • Ambiguity is the key to locking content. There are three common conditions: name, description and readme (read.md file in the warehouse)

  • Search by item name. For example, for items with spring and boot keywords in the name, the search criteria arein:name spring boot

在这里插入图片描述

  • Through item description search, this is the most common method I use. For example, I want to find the ready-made breakpoint continuation code in Java version. The search criteria areIn: description breakpoint continuation language: Java

在这里插入图片描述

  • Through readme in the warehouse MD content search is also very common. There are usually detailed document information. For example, I think the server-side code of grpc, java version, and the search criteria arein:readme grpc server language:java

在这里插入图片描述

  • For example, I want to find kubernetes advanced combat related content. The search criteria areIn: readme kubernetes advanced actual combat, the results are as follows. In the red box is Xinchen’s own warehouse with keywordsKubernetes advanced actual combat, check Quite accurate:

在这里插入图片描述

Range

  • If too many contents are searched by the above methods, you can also specify the range. The common types are: Stars (number of stars), forks (number of forks), pushed (last submission time), size (file size)
  • Search for items with spring boot in the name and more than 10000 stars,in:name spring-boot stars:>10000

在这里插入图片描述

  • Search for items with spring boot in the name and more than 10000 forks,in:name spring-boot forks:>10000

在这里插入图片描述

  • Search for items with spring boot in the name and updated after March 12, 2021in:name spring-boot pushed:>2021-03-12

在这里插入图片描述

  • Spring boot in search name and content greater than100kProjectin:name spring-boot size:>100Note that the default unit for this number isk

在这里插入图片描述

sort

  • After the search results are found, you can also adjust the sorting of the results. The operation position is shown in the red box below:

在这里插入图片描述

List each sorting type in the red box above:

name significance
Best match Keyword matching degree
Most stars Up to star
Fewest stars Minimum star
Most forks Fork at most
Fewest forks Minimum fork
Recently updated Recent updates
Least recently updateed The longest update time
  • The above is a summary of my GitHub search skills. I hope to give you some reference and explore GitHub treasures more efficiently;

You’re not alone. Xinchen’s original accompanies you all the way

  1. Java series
  2. Spring collection
  3. Docker series
  4. Kubernetes series
  5. Database + middleware series
  6. Devops series

Welcome to the official account: programmer Xin Chen

Wechat search “programmer Xinchen”, I’m Xinchen, looking forward to traveling with you in the Java World
https://github.com/zq2599/blog_demos