๐ต๏ธ GitHub's Hidden Features & Tricks
A collection of things GitHub doesn't exactly advertise. Saving these here so I don't forget them.
| Repo name | What it does |
|---|---|
username/username |
Profile README โ you're looking at it right now |
username.github.io |
Free personal website at https://username.github.io/ โ auto-enables GitHub Pages |
.github/FUNDING.yml |
Adds a "Sponsor" button to all your repos (supports Ko-fi, Patreon, custom URLs) |
.github/ISSUE_TEMPLATE.md |
Pre-fills every new issue with your template |
.github/PULL_REQUEST_TEMPLATE.md |
Pre-fills every new PR with your template |
| Append this to a URL | What it does |
|---|---|
?w=1 |
Hides whitespace-only changes in diffs โ see actual code changes |
?ts=4 |
Sets tab width to 4 instead of the default 8 |
.diff or .patch |
On any PR/commit URL โ raw diff output, pipeable to tools |
#L52 or #L53-L60 |
Highlights specific lines in a file (shareable links) |
?author=username |
Filters commits page by author |
?timeline_per_page=1 |
Forces pagination on long issue/PR threads |
- Branch vs branch:
/compare/branch1...branch2 - Across forks:
/compare/other-user:branch...your-branch - Time-based diffs:
/compare/main@{1.day.ago}...mainโ "what changed in the last day?" - By date:
/compare/main@{2024-10-04}...main
Press ? on any GitHub page to see all shortcuts for that page. The best ones:
| Key | What it does |
|---|---|
t |
Fuzzy file finder โ genuinely life-changing |
w |
Branch switcher |
s |
Focus search bar |
l |
Edit labels on issues |
y |
Rewrites URL to permanent SHA link โ file will never 404 even if branch changes |
r |
Highlight text in an issue, press r โ auto-quotes it in your reply |
๐ ๏ธ Actually Useful Hidden Stuff
- Gists are full git repos โ
git clone https://gist.github.com/{id}, push commits, branch them. Free scratch repos - Paste screenshots into issues/PRs โ just
Cmd+V, it uploads automatically - Close issues from commits โ
fixes #12orcloses #12in a commit message auto-closes the issue on merge - Cross-repo issue refs โ
user/other-repo#5links issues across repositories - GitHub Actions cron jobs โ schedule workflows to run on a cron. Free automation for personal projects
- Secret gists โ unlisted (not private), great as free paste bins
- Quick license picker โ when creating a repo, there's a license dropdown most people never notice
status:successfilter โ on PR search, shows only PRs where CI passed
| What | How |
|---|---|
| ASCII Pi to 336 decimals | Visit github.com/ฯ |
| ASCII Octocat | curl https://api.github.com/octocat |
| Roguelike commit garden | gh repo garden in GitHub CLI (navigate with vim keys) |
| 3D contribution skyline | Visit skyline.github.com + enter Konami Code (โโโโโโโโBA) for retro 80s mode |
| Spooky contribution graph | Shows up automatically every Halloween ๐ |




