Github Keyboard Shortcuts

Github

Site wide shortcuts

/Focus the search bar.
g then nGo to your notifications.
hOpens and focuses on a user, issue, or pull request hovercard
escapeWhen focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in

Repositories

g then cGo to the Code tab
g then iGo to the Issues tab.
g then pGo to the Pull requests tab.
g then bGo to the Projects tab.
g then wGo to the Wiki tab.

Source code editing

command + fStart searching in file editor
command + gFind next
shift + command + gFind previous
command + option + fReplace
shift + command + option + fReplace all
alt + gJump to line
command + zUndo
command + yRedo

Source code browsing

tActivates the file finder
lJump to a line in your code
wSwitch to a new branch or tag
yExpand a URL to its canonical form.
iShow or hide comments on diffs.
bOpen blame view.

Comments

command + bInserts Markdown formatting for bolding text
command + iInserts Markdown formatting for italicizing text
command + kInserts Markdown formatting for creating a link
control + shift + pToggles between the Write and Preview comment tabs
control + enterSubmits a comment
control + . then control + (saved reply number)Opens saved replies menu and then autofills comment field with a saved reply.
command + gInsert a suggestion.
rQuote the selected text in your reply.

Issue and pull request lists

cCreate an issue
command + /Focus your cursor on the issues or pull requests search bar. For more information, see "Using search to filter issues and pull requests."
uFilter by author
lFilter by or edit labels. For more information, see "Filtering issues and pull requests by labels."
mFilter by or edit milestones. For more information, see "Filtering issues and pull requests by milestone."
aFilter by or edit assignee. For more information, see "Filtering issues and pull requests by assignees."
o or enterOpen issue

Issues and pull requests

qRequest a reviewer. For more information, see "Requesting a pull request review."
mSet a milestone. For more information, see "Associating milestones with issues and pull requests."
lApply a label. For more information, see "Applying labels to issues and pull requests."
aSet an assignee. For more information, see "Assigning issues and pull requests to other GitHub users."

Changes in pull requests

cOpen the list of commits in the pull request
tOpen the list of changed files in the pull request
jMove selection down in the list
kMove selection up in the list
command + shift + enterAdd a single comment on a pull request diff
alt clickToggle between collapsing and expanding all outdated review comments in a pull request by holding down alt and clicking Show outdated or Hide outdated .

Project boards

enter or spaceStart moving the focused column
escapeCancel the move in progress
enterComplete the move in progress
left or hMove column to the left
command + left or command + hMove column to the leftmost position
right or lMove column to the right
command + right or command + lMove column to the rightmost position
enter or spaceStart moving the focused card
escapeCancel the move in progress
enterComplete the move in progress
down or jMove card down
command + down or command + jMove card to the bottom of the column
up or kMove card up
command + up or command + kMove card to the top of the column
left or hMove card to the bottom of the column on the left
shift + hMove card to the top of the column on the left
command + left or command + hMove card to the bottom of the leftmost column
command + shift + hMove card to the top of the leftmost column
rightMove card to the bottom of the column on the right
shift + lMove card to the top of the column on the right
command + right or command + lMove card to the bottom of the rightmost column
command + shift + lMove card to the bottom of the rightmost column

Notifications

e or i or yMark as read
shift + mMute thread

Network Graph

left or hScroll left
right or lScroll right
up or kScroll up
down or jScroll down
shift + hScroll all the way left
shift + lScroll all the way right
shift + kScroll all the way up
shift + jScroll all the way down