Shortcut

GitHub Get Permanent Link to File Shortcut

The GitHub shortcut to get permanent link to file is y on Windows. It's the same on Mac.

Quick Answer

Windows
y
Mac
y
Web
Not confirmed yet
GitHubShortcut

Get Permanent Link to File

Windows
y

Rewrites the address bar to the permanent (canonical) URL of the file you are viewing.

Learn More

How to get permanent link to file in GitHub

  1. Open GitHub and go to where you want to get permanent link to file.
  2. Press y on Windows or y on Mac.

GitHub Get Permanent Link to File Shortcut for Windows

Press y.

GitHub Get Permanent Link to File Shortcut for Mac

Press y.

GitHub Get Permanent Link to File Shortcut for GitHub Web

We haven't confirmed a GitHub Web shortcut for this yet.

Related Keyboard Shortcuts

Frequently asked questions

What is the GitHub get permanent link to file shortcut?

On Windows, press y. On a Mac, press y.

Is there a Mac shortcut to get permanent link to file in GitHub?

Yes: y.

Does it work in GitHub for the web?

We haven't confirmed a web version shortcut for this yet.

Official source · How we verify