GitHub navigation shortcuts that pay off daily
Longtime GitHub users often pick up habits that never make it into the official docs. Some of the most useful ones are simple keyboard shortcuts and URL patterns. Pressing t in any repository opens a fuzzy file finder; start typing a filename and jump straight to it. That's handy when you're exploring an unfamiliar codebase and want to locate schema.rb or similar anchor files quickly.
For browsing directory structures without opening file after file, the Octotree browser extension adds a familiar tree view to repositories. It also works with GitHub Enterprise. If you build extensions for GitHub and want them compatible with Enterprise, a developer license from the GitHub Developer Program gives you access to test instances.
Notification overload is a common complaint, but the Notifier for GitHub extension from @sindresorhus puts a count in your toolbar, with optional desktop notifications. Enterprise users just point the API endpoint at their instance URL, such as https://api.github.cyberdynesystems.com.
When mentions slip past your filters, the Mention Highlighter extension from @benbalter makes references to your username stand out visually, even in dense comment threads.
Linking to code that stays put
Clicking a line number while viewing a file appends something like #L1337 to the URL, taking anyone straight to that line. That works until the file changes, though. Press y or choose Copy permalink to generate a canonical URL tied to the specific commit, which survives later edits, renames, or deletions. Hold down SHIFT and click two line numbers to link a range.
One bonus: pasting a code-snippet link into a GitHub comment renders a preview of the code inline, a feature originally prototyped by interns. If that kind of work appeals to you, GitHub's internship program is worth a look.
GitHub Flavored Markdown beyond the basics
Markdown handles plain text and tables, but a little raw HTML goes further. The <kbd> tag makes text look like a keycap, perfect for documenting shortcuts or game controls in READMEs and wikis.
Hex color codes placed in backticks render as color tiles, which makes palettes and theme docs much more readable. Similarly, wrapping a block in diff language tags highlights added lines in green and removed lines in red right in the rendered comment or issue.
Long error logs or verbose output can swamp an issue. Wrapping them in <details> and <summary> tags collapses the content behind a clickable header. Centering images or text works with <div align="center"> [ Your content here ]</div>, useful for logos in repository READMEs. And <sup> or <sub> tags shrink text, handy for figure captions or compact table cells.
URL tricks for topic searches
The web UI filters topic pages by a single topic and language, such as all #game repositories written in JavaScript. Combining two topics requires a URL hack: append ?q=[TOPIC] to the topic URL. Examples that work:
#covid-19plus#visualization: github.com/topics/covid-19?q=visualization#chrome-extensionplus#github: github.com/topics/chrome-extension?q=github#unityplus#shader: github.com/topics/unity?q=shader#minecraftplus#mod: github.com/topics/minecraft?q=mod
Adding topics to your own repositories makes them discoverable in these searches, a simple way to attract contributors.
Repository metrics from the command line
Git itself can rank contributors. git shortlog -sn prints authors ordered by commit count; add --no-merges to exclude merge commits. For public repositories, GitHub High Scores offers an arcade-style visualization of contributor activity. Just be aware that anyone squashing commits lands lower on the table.
Several CLI tools go deeper into Git history. git-quick-stats summarizes activity, including contributions by day, hour, and month. git-fame breaks down contributions by lines of code. git-stats charts contributions and related data with a polished terminal output.
Of course, commit counts and line totals are weak proxies for engineering value. If your bonus depends on them, the metrics aren't the real problem.
Dark mode and other quality-of-life tweaks
For late-night sessions, the unofficial GitHub Dark Theme browser extension works across Chrome, Firefox, Opera, and Safari, and a long-standing favicon issue has been fixed. The extension's README makes the case for dark mode with the kind of dad joke only an engineer would love: light attracts more bugs.
One more oddity worth knowing: an app called open-and-shut from @veggiedefender turns your laptop into a morse code transmitter by slamming the lid repeatedly. The feature list is reportedly excellent. Whether it's serious or satire is anybody's guess, but it offers both exercise and morse code practice while you're stuck at home. Proceed at your own risk.
If you have your own GitHub tips, the #GitHubProtips hashtag is the place to share them.



