Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Case Analysis of Github Operation skills

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of case analysis of Github operation skills, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Github operation skills example analysis article. Let's take a look at it.

Before we begin, it is necessary to say the meaning of several commonly used words, which must be unknown to many people.

Watch: will continue to receive updates on the project

Fork, copy a project to your own Github repository

Star can be understood as giving likes.

Clone, download the project locally

Follow, follow the authors you are interested in, and receive their updates.

Limit the search scope through in keywords

The xxx in:name project name contains the xxx's

The xxx in:description project description contains the xxx's

The readme file of the xxx in:readme project contains the xxx's

Of course, it can also be combined with xxx in:name,desciption.

As follows, I need to search for projects whose name or description contains "Hello"

Done through Hello in:name,decription

Find items by Star or Fork number

Through the wildcard >

< = 即可,区间范围内可通过 num1..num2 如,要查找stars数不小于666的springboot项目 springboot stars:>

= 666

Forks is greater than or equal to 500

Springboot forks: > 500

Find springboot projects with fork between 100 and 200 and stars number between 80 and 100

Springboot forks:100..200 stars:80..100

Awesome + keyword

Search for excellent items that match keywords

Awesome springboot searches for excellent springboot-related projects, including frameworks, tutorials, etc.

Share the code of a line in a project

You only need to concatenate # Lxx after the specific URL (xx is the number of lines)

Such as

I need to share the @ SprintBootApplication annotation in this class. The values need to be concatenated with # L6 at the end.

Https://github.com/lxy-go/SpringBoot/.../JpaApplication.java#L6

Browser access found that the

Of course, paragraphs can also be highlighted.

Https://github.com/lxy-go/SpringBoot/blob/master/SpringBoot/DataJpaApplication.java#L6-L10

Intra-project search

Open the item you want to search for and press the'T 'key. Will jump to a new web page

As shown below:

For example, I want to search the configuration file application.yml for this project.

There are a lot of similar shortcuts on the page, and there are commonly used 'Lines', how many lines to jump to in the file.

Search for the bosses in a certain area

You can search through location: region, and you can narrow the search scope through language: language.

For example, users in the search area in the direction of Java in Beijing

Location:beijing language:java

Recommend some Github plug-ins

1 、 Octotree

Usually browse the github code, each file needs to click to view, using this plug-in can be the project directory structure with a tree structure, click will automatically jump to the corresponding directory. Recommended for wall cracks!

2 、 OctoLinker

Wouldn't it be nice to browse the code if you can link and jump like ide, and this plug-in can help us do this. All you need is ctrl+ to click on the variable name.

3 、 Sourcegraph

A tool that can browse and search for code on github. After installing the plug-in, there will be a view Repository button.

After clicking in, simply don't feel too good. Feel free to search in the project, view variables and methods, jump, and so on. It is useless to say more. It is recommended that you install the plug-in and feel it for yourself.

This is the end of the article on "case Analysis of Github Operation skills". Thank you for your reading! I believe you all have a certain understanding of the knowledge of "case analysis of Github operation skills". If you want to learn more knowledge, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report