5 practical GitHub tips

GitHub document address icon-default.png?t=M666https://docs.github.com/cn

GitHub keyboard shortcuts icon-default.png?t=M666https://docs.github.com/cn/get-started/using-github/keyboard-shortcuts 

1. Warehouse search skills

1.【S】key

Press the S key on the GitHub interface to quickly focus the search box.


2. Search qualifiers

For details, please refer to: Searching on GitHub icon-default.png?t=M666https://docs.github.com/cn/search-github/searching-on-github/searching-for-repositories

For example, the following code block means: search for libraries whose warehouse name contains javascript and whose starts are greater than or equal to 10,000 and whose latest submission time is greater than June 1, 2022.

javascript in:name stars:>=10000 pushed:>2022-06-01

search results: 

 

3. Advanced search interface GitHub advanced search icon-default.png?t=M666https://github.com/search/advanced

If you can't remember the above search qualifiers, you can go directly to the advanced search interface and use the visual form to search.

 

2. File viewing skills

 1. [T] key

Press the T key on the warehouse interface to search all files in the warehouse in real time

2. [L] key

In the project file interface, press the L key to enter the line number quickly, and click the line number to copy the line of code, copy the permanent link and other operations.

3. 【B】key

Press the B key on the project file interface to quickly view the change history of the file

4、【ctrl + K】

It doesn't matter if you can't remember that this is the shortcut key page. Press ctrl + K in the warehouse to open the command panel directly, and you can quickly access various operations through the command panel.

3. Reading code skills

 1,【. 】key

Press in the project. key (note the input method), you can directly open the project code in the web version of vscode, the experience is exactly the same as the local vscode, and you can even install plug-ins.

4. Run the project online

 1. Enter the prefix before the URL: gitpod.io/#/

If you enter for the first time you need to log in and select your editor

 

2. Choose to open in browser 

 

At this time, a magical thing happened. Not only did we open the project code in the web editor, but it also recognized your project and automatically installed dependencies, and it has built-in various common environments (python, java, go, node, etc.). We can use this web editor as a direct computer, directly edit and run the project online, and view the effect.

 5. Project push

 GitHub exploration interface icon-default.png?t=M666https://github.com/explore

1. Get email updates 

We can let GitHub push the high-quality content we are interested in to us regularly, and get the latest consultation in real time to expand our knowledge.

 

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_38629292/article/details/125708630