As a developer, most of me have used GitHub. But you may not know that GitHub has many hidden features that can help us use it better. The following article will share with you 8 cool GitHub skills to make you look like a boss!

1. Use the "t" key to quickly search for files
This is a cool feature that only a few people know about . When you want to view the contents of a file, you can press the "T" key and then enter the file name to jump directly to the target file.
Steps
Open https://github.com/lodash/lodash
Press
TKeyEnter
add.test.js(any file name you want to search for).Click to jump to view the file content

2. Use online 3 ways to view code in the "VSCode" editor
Although using the "T" key allows us to quickly search files, it becomes inefficient when you want to view the entire project code.
Here are three ways to view the code online, just like in the VSCode editor. The third way is my favorite way and I think you will like it.
2.1. Method 1: Use the "." shortcut key
to open the project https://github.com /vuejs/vue
Click the '.' key on the keyboard
Then the page will be redirected to https://github.dev/vuejs /vue

#2.2. Method 2: Use "github1s.com"
When you see a project you like on GitHub, you need to change "github" to "github1s" to achieve the same effect as method 1!- Open the project https://github.com/vuejs/vue
- Change https://github.com/vuejs/vue to https://github1s.com /vuejs/vue

##2.3. Method 3: Use "gitpod.com/#xxx "The third way is amazing. You can even run Node.js code directly online. I like it so much. It's very easy to use, you just need to prepend your GitHub link with gitpod.com/#.
- Open the project https://github.com/qianlongo/fe-handwriting
- at https://github.com/qianlongo/ Join gitpod.com/# before fe-handwriting.

Sometimes you Specify a line of code and share its location with others, like this:
How to do it?
- Open the project:
- https://github.com/qianlongo/fe-handwriting/blob/master/ 17.quick-sort.js
- Copy link (https://github.com/qianlongo/fe -handwriting/blob/master/17.quick-sort.js#L8)
I believe you must have noticed Our link has "L8" after it. Yes, that's right, you can link to the code you want by changing the "L" line number.
Since we can link to a single line of code, we can link to multiple lines of code.
Steps:
- Open the project:
- https://github.com/qianlongo/fe-handwriting/blob/master/17.quick-sort. js
- Copy link(https://github.com/qianlongo/fe-handwriting/blob/master/17.quick-sort.js#L8-L24)

5. Jump to the function definition
How to quickly link to the defined function The place? I recommend you a chrome plug-in called sourcegraph.
After the plug-in is installed, a button will appear when the mouse is placed where the function is used. Click to link to where it is defined.


##6. View the shortcut key list
GitHub provides a lot of shortcut keys to help us read the code, but remembering them is not an easy thing. Fortunately, you can use"Shift " "" to bring up the shortcut keys list.

Introduction to Programming! !
The above is the detailed content of 8 Cool Tips in GitHub Worth Knowing. For more information, please follow other related articles on the PHP Chinese website!
Git and GitHub: Essential Tools for DevelopersApr 19, 2025 am 12:17 AMGit and GitHub are essential tools for modern developers. 1. Use Git for version control: create branches for parallel development, merge branches, and roll back errors. 2. Use GitHub for team collaboration: code review through PullRequest to resolve merge conflicts. 3. Practical tips and best practices: submit regularly, submit messages clearly, use .gitignore, and back up the code base regularly.
Git and GitHub: Their Relationship ExplainedApr 18, 2025 am 12:03 AMGit and GitHub are not the same thing: Git is a distributed version control system, and GitHub is an online platform based on Git. Git helps developers manage code versions and achieve collaboration through branching, merge and other functions; GitHub provides code hosting, review, problem management and social interaction functions, enhancing Git's collaboration capabilities.
What do you need to set after downloading GitApr 17, 2025 pm 04:57 PMAfter installing Git, in order to use more efficiently, the following settings are required: Set user information (name and mailbox) Select text editor Set external merge tool Generate SSH key settings Ignore file mode
What to do if the git download is not activeApr 17, 2025 pm 04:54 PMResolve: When Git download speed is slow, you can take the following steps: Check the network connection and try to switch the connection method. Optimize Git configuration: Increase the POST buffer size (git config --global http.postBuffer 524288000), and reduce the low-speed limit (git config --global http.lowSpeedLimit 1000). Use a Git proxy (such as git-proxy or git-lfs-proxy). Try using a different Git client (such as Sourcetree or Github Desktop). Check for fire protection
Why is git downloading so slowApr 17, 2025 pm 04:51 PMCauses of slow Git downloads include poor network connections, Git server problems, large files or large submissions, Git configuration issues, insufficient computer resources, and other factors such as malware. Workarounds include improving network connectivity, adjusting firewall settings, avoiding downloading unnecessary files or submissions, optimizing Git configuration, providing adequate computer resources, and scanning and removing malware.
How to update local code in gitApr 17, 2025 pm 04:48 PMHow to update local Git code? Use git fetch to pull the latest changes from the remote repository. Merge remote changes to the local branch using git merge origin/<remote branch name>. Resolve conflicts arising from mergers. Use git commit -m "Merge branch <Remote branch name>" to submit merge changes and apply updates.
How to update code in gitApr 17, 2025 pm 04:45 PMSteps to update git code: Check out code: git clone https://github.com/username/repo.git Get the latest changes: git fetch merge changes: git merge origin/master push changes (optional): git push origin master
How to delete branches of gitApr 17, 2025 pm 04:42 PMYou can delete a Git branch through the following steps: 1. Delete the local branch: Use the git branch -d <branch-name> command; 2. Delete the remote branch: Use the git push <remote-name> --delete <branch-name> command; 3. Protected branch: Use git config branch. <branch-name>.protected true to add the protection branch settings.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.







