r/github • u/No_Ambition8323 • 16d ago
Discussion GitHub features most people don’t know about
I’ve used GitHub for years and still keep finding small features that save time. Here are a few of my favorites:
Press . on any repo: opens it in a web code editor right in your browser.
Press t: quickly search for any file in the repo.
Press y: turns the URL into a permanent link to that exact version of the file.
Link to specific lines: click a line number, then shift-click another to share a range like #L10-L20.
Add ?w=1 to a PR diff URL: hides whitespace changes, so you only see real code changes.
Add .patch to a commit URL: shows the commit as a plain patch file.
What hidden GitHub features do you use? Let’s make a big list!
6
u/imagebiot 16d ago
Does the page need to load first? I keep typing GitHub.com and all I see is 500s 😂
4
u/ArjixGamer 16d ago
I very rarely experience downtime on GitHub, because I am logged in. If I visit while logged out, I frequently encounter the rate limits and error pages.
Do y'all never login or smth?
2
u/tomraider 16d ago
gp for jumping to the pull requests tab.
Also:
gcCode tabgiIssues tabgaActions tabgnNotifications
1
1
u/ram-popular 16d ago
Great list, the y permalink one saves me from broken links all the time. A few more I'd add:
Press
?on any page to see all keyboard shortcuts.Copilot-free code search: press
/to search, and use filters likepath:,language:andsymbol:to find things fast.Closing keywords: write "fixes #123" in a PR description and the issue closes automatically on merge.
Saved replies and task lists in issues, with
- [ ]checkboxes that track progress.Add
.diffto a PR URL, same as.patch, for a plain-text diff.
1
u/Harshal-Tupe 13d ago
I built GitHop to make managing multiple GitHub accounts on the same machine easier. It lets you manage different Git profiles and automatically select the right identity for each repository.
Might be useful for developers facing the same issue!
12
u/Tontonsb 16d ago
Press
?to see keyboard shortcuts. Also works on youtube and twitter.Not hidden at all, but the one I use the most: press
/to search, just like in vim.Add
?ts=3to change the displayed tab size. IIRC the one specified in.editorconfigoverrides this.