Skip to main content

GitHub shortcuts

Your answer helps keep this page right.

Do these shortcuts work for you?

The GitHub list has a section for each kind of page: Source code browsing, Issue and pull request lists, Changes in pull requests, Project boards, Notifications and more. Site wide shortcuts is the section that applies on every page. Many of the shortcuts are single keys, such as File finder and Create issue.

SetappAd
A shortcut to the best Mac apps

An essential toolbox for macOS and iOS.

Start with these

  • Command Palette
  • File finder
  • Switch branch or tag
  • Create issue
  • Open web editor
  • Show keyboard shortcuts

Tips for GitHub

  • The same letter does different things in different sections. Apply label L and Filter by labels L share a key, and so do Set assignee A and Filter by assignee A.
  • In a pull request, Open commits list C and Open changed files T switch between the commits and the files.
Jump to section

Site wide shortcuts5

ActionShortcut
Show keyboard shortcuts
Focus search bar
Close hovercard
Command Palette
Command Palette in Markdown

Source code editing11

ActionShortcut
Open web editor
Edit file
Find in editor
Find next
Find previous
Replace
Replace all
Jump to line
Undo
Redo
Toggle edit/preview

Source code browsing6

ActionShortcut
File finder
Jump to line in code
Switch branch or tag
Expand URL to canonical form
Show/hide diff comments
Open blame view

Comments7

ActionShortcut
Bold text
Italic text
Create link
Toggle write/preview
Submit comment
Insert suggestion
Quote selected text

Issue and pull request lists8

ActionShortcut
Filter by assignee
Create issue
Focus search bar
Filter by author
Filter by labels
Exclude labels
Filter by milestones
Open issue

Issues and pull requests4

ActionShortcut
Request reviewer
Set milestone
Apply label
Set assignee

Changes in pull requests6

ActionShortcut
Open commits list
Open changed files
Move selection down
Move selection up
Comment on diff
Toggle outdated comments

Project boards14

ActionShortcut
Start moving column
Cancel move
Move column left
Move column to leftmost
Move column right
Move column to rightmost
Move card down
Move card to bottom
Move card up
Move card to top
Move card to top of left column
Move card to top of right column
Move card to top of leftmost column
Move card to top of rightmost column

GitHub Actions1

ActionShortcut
Workflow suggestions

Notifications4

ActionShortcut
Mark as done
Mark as unread
Mark as read
Unsubscribe

Network graph8

ActionShortcut
Scroll left
Scroll right
Scroll up
Scroll down
Scroll all the way left
Scroll all the way right
Scroll all the way up
Scroll all the way down
Report a problem

GitHub is public. Email is private.

Frequently Asked Questions

How many keyboard shortcuts does GitHub have on macOS?

GitHub has 74 keyboard shortcuts on macOS, organized into 11 sections: Site wide shortcuts, Source code editing, Source code browsing, Comments, and more. This page lists all of them with searchable, organized shortcut tables.

Which GitHub shortcuts should I learn first?

Start with Command Palette (⌘K), File finder (T), Switch branch or tag (W), Create issue (C), Open web editor (.), Show keyboard shortcuts (?). The sections on this page list the rest.

Can I download GitHub shortcuts as a PDF?

Yes. Click the download button at the top of this page to generate a printable PDF cheat sheet with all 74 GitHub shortcuts. The PDF includes organized sections, keycap-style key labels, and space for your own notes.

Where is the official GitHub keyboard shortcuts documentation?

The official GitHub keyboard shortcuts documentation is available on their website. Every shortcut on this page is sourced from and verified against the official documentation to ensure accuracy.

Do these GitHub shortcuts work on all Mac keyboards?

Yes. These shortcuts work on all Mac keyboards, including MacBook built-in keyboards and external Apple keyboards. The modifier keys are Command (⌘), Option (⌥), Control (⌃), and Shift (⇧). On keyboards without a Function row, some F-key shortcuts may require holding the Fn key.

Maintained by

Access GitHub shortcuts from your menu bar

KeyShortcut detects the active app and shows its shortcuts instantly. Switch it on in Settings. No memorization needed.