Skip to the main content

GitHub keyboard shortcuts

Repository navigation, code browsing, review, and Markdown shortcuts.

44 shortcuts Mac and Windows checked September 12, 2026

Print all 44 shortcuts One sheet with every shortcut in this app, ready for the printer or a PDF.

12 actions and 12 key variants match.

Search all apps

Matching shortcuts
Action Keys Row actions
Show or hide comments on a diff Diff view Mac I Source
Bold the selected text Comment or Markdown field Mac CmdB Source
Italicise the selected text Comment or Markdown field Mac CmdI Source
Insert inline code formatting Comment or Markdown field Mac CmdE Source
Insert a link Comment or Markdown field Mac CmdK Source
Insert a numbered list Comment or Markdown field Mac CmdShift7 Source
Insert a bulleted list Comment or Markdown field Mac CmdShift8 Source
Insert a quote Comment or Markdown field Mac CmdShift. Source
Switch between Write and Preview Comment field Mac CmdShiftP Source
Submit the comment Comment field Mac CmdEnter Source
Request a reviewer Issue or pull request Mac Q Source
Submit a review comment Files changed tab Mac CmdShiftEnter Source

About GitHub and its shortcuts

GitHub's website has a keyboard layer that most of its users never switch on in their heads: single letters and short sequences jump between pull requests, issues, code search and the file finder. For code review in particular, moving between files and comments without the mouse changes how fast a review goes.

These are commands of the website, not of Git itself, and GitHub lets you disable them in your account settings. The set also changes as the site changes, and some commands only apply on specific pages.

Where the GitHub keys came from

Read from 1 documentation page published by the makers of GitHub. Report a key that is wrong

To see how one action is done in other apps as well as GitHub, browse the shortcuts by task. Shortcuts by task