This version of GitHub Enterprise was discontinued on 2021-06-09. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Keyboard shortcuts

Nearly every page on GitHub Enterprise Server has a keyboard shortcut to perform actions faster.

About keyboard shortcuts

Typing ? in GitHub Enterprise Server brings up a dialog box that lists the keyboard shortcuts available for that page. You can use these keyboard shortcuts to perform actions across the site without using your mouse to navigate.

Below is a list of some of the available keyboard shortcuts.

Site wide shortcuts

Keyboard shortcutDescription
s or /Focus the search bar. For more information, see "About searching on GitHub."
g nGo to your notifications. For more information, see "About notifications."
escWhen focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in

Repositories

Keyboard shortcutDescription
g cGo to the Code tab
g iGo to the Issues tab. For more information, see "About issues."
g pGo to the Pull requests tab. For more information, see "About pull requests."
g bGo to the Projects tab. For more information, see "About project boards."
g wGo to the Wiki tab. For more information, see "About wikis."

Source code editing

Keyboard shortcutDescription
control b or command bInserts Markdown formatting for bolding text
control i or command iInserts Markdown formatting for italicizing text
control k or command kInserts Markdown formatting for creating a link
eOpen source code file in the Edit file tab
control f or command fStart searching in file editor
control g or command gFind next
shift control g or shift command gFind previous
shift control f or command option fReplace
shift control r or shift command option fReplace all
alt gJump to line
control z or command zUndo
control y or command yRedo
cmd + shift + pToggles between the Edit file and Preview changes tabs
control s or command sWrite a commit message

For more keyboard shortcuts, see the CodeMirror documentation.

Source code browsing

Keyboard shortcutDescription
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. For more information, see "Getting permanent links to files."
iShow or hide comments on diffs. For more information, see "Commenting on the diff of a pull request."
aShow or hide annotations on diffs
bOpen blame view. For more information, see "Tracing changes in a file."

Comments

Keyboard shortcutDescription
control b or command bInserts Markdown formatting for bolding text
control i or command iInserts Markdown formatting for italicizing text
control k or command kInserts Markdown formatting for creating a link
control shift p or command shift pToggles between the Write and Preview comment tabs
control enterSubmits a comment
control . and then control [saved reply number]Opens saved replies menu and then autofills comment field with a saved reply. For more information, see "About saved replies."
rQuote the selected text in your reply. For more information, see "Basic writing and formatting syntax."

Issue and pull request lists

Keyboard shortcutDescription
cCreate an issue
control / or 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."
alt and clickWhile filtering by labels, exclude 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

Keyboard shortcutDescription
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."
cmd + shift + p or control + shift + pToggles between the Write and Preview tabs

Changes in pull requests

Keyboard shortcutDescription
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
cmd + shift + enter Add a single comment on a pull request diff
alt and clickToggle between collapsing and expanding all outdated review comments in a pull request by holding down alt and clicking Show outdated or Hide outdated.
Click, then shift and clickComment on multiple lines of a pull request by clicking a line number, holding shift, then clicking another line number. For more information, see "Commenting on a pull request."

Project boards

Moving a column

Keyboard shortcutDescription
enter or spaceStart moving the focused column
escapeCancel the move in progress
enterComplete the move in progress
or hMove column to the left
command + ← or command + h or control + ← or control + hMove column to the leftmost position
or lMove column to the right
command + → or command + l or control + → or control + lMove column to the rightmost position

Moving a card

Keyboard shortcutDescription
enter or spaceStart moving the focused card
escapeCancel the move in progress
enterComplete the move in progress
or jMove card down
command + ↓ or command + j or control + ↓ or control + jMove card to the bottom of the column
or kMove card up
command + ↑ or command + k or control + ↑ or control + kMove card to the top of the column
or hMove card to the bottom of the column on the left
shift + ← or shift + hMove card to the top of the column on the left
command + ← or command + h or control + ← or control + hMove card to the bottom of the leftmost column
command + shift + ← or command + shift + h or control + shift + ← or control + shift + hMove card to the top of the leftmost column
Move card to the bottom of the column on the right
shift + → or shift + lMove card to the top of the column on the right
command + → or command + l or control + → or control + lMove card to the bottom of the rightmost column
command + shift + → or command + shift + l or control + shift + → or control + shift + lMove card to the bottom of the rightmost column

Previewing a card

Keyboard shortcutDescription
escClose the card preview pane

Notifications

Keyboard shortcutDescription
eMark as done
shift + uMark as unread
shift + iMark as read
shift + mUnsubscribe

Network graph

Keyboard shortcutDescription
or hScroll left
or lScroll right
or kScroll up
or jScroll down
shift + ← or shift + hScroll all the way left
shift + → or shift + lScroll all the way right
shift + ↑ or shift + kScroll all the way up
shift + ↓ or shift + jScroll all the way down