1. Home
  2. Keyboard Shortcuts
  3. GitHub
Version Control

GitHub Keyboard Shortcuts

Every one of GitHub's 130 keyboard shortcuts, collected so you can collaborate on code repositories faster

GitHub keyboard shortcuts

GitHub is a version control tool from GitHub Inc. that enables users to collaborate on code repositories. It is trusted by creative and technical professionals worldwide.

Speed matters when you use GitHub professionally. Keyboard shortcuts eliminate unnecessary clicks and keep your hands on the keys where they belong.

macOSWindowsLinux 130 SHORTCUTS 15 CATEGORIES
VISIT GITHUB OFFICIAL WEBSITE ↗
SHOW SHORTCUTS FOR:
Jump to Section (15 sections)

Site Wide Shortcuts5 SHORTCUTS

Focus the search bar SSS
Focus the search bar ///
Go to your notifications G+NG+NG+N
Move focus from an element to its hovercard Opt+UpAlt+UpAlt+Up
When focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in EscEscEsc

Repositories7 SHORTCUTS

Go to the Code tab G+CG+CG+C
Go to the Issues tab G+IG+IG+I
Go to the Pull requests tab G+PG+PG+P
Go to the Actions tab G+AG+AG+A
Go to the Wiki tab G+WG+WG+W
Go to the Discussions tab G+GG+GG+G
Go to the repository's Security tab G+SG+SG+S

Source Code Editing20 SHORTCUTS

Opens a repository or pull request in the github.dev editor, in the same browser tab ...
Opens a repository or pull request in the github.dev editor, in a new browser tab Shift+.Shift+.Shift+.
Inserts Markdown formatting for bolding text Cmd+BCtrl+BCtrl+B
Inserts Markdown formatting for a code one-liner Cmd+ECtrl+ECtrl+E
Inserts Markdown formatting for italicizing text Cmd+ICtrl+ICtrl+I
Inserts Markdown formatting for creating a link Cmd+KCtrl+KCtrl+K
Inserts Markdown formatting for an ordered list Shift+Cmd+7Ctrl+Shift+7Ctrl+Shift+7
Inserts Markdown formatting for an unordered list Shift+Cmd+8Ctrl+Shift+8Ctrl+Shift+8
Inserts Markdown formatting for a quote Shift+Cmd+.Ctrl+Shift+.Ctrl+Shift+.
Open source code file in the Edit file tab EEE
Start searching in file editor Cmd+FCtrl+FCtrl+F
Find next Cmd+GCtrl+GCtrl+G
Find previous Shift+Cmd+GCtrl+Shift+GCtrl+Shift+G
Replace Opt+Cmd+FCtrl+Shift+FCtrl+Shift+F
Replace all Opt+Shift+Cmd+FCtrl+Shift+RCtrl+Shift+R
Jump to line Opt+GAlt+GAlt+G
Undo Cmd+ZCtrl+ZCtrl+Z
Redo Cmd+YCtrl+YCtrl+Y
Toggles between the Edit file and Preview changes tabs Shift+Cmd+PCtrl+Shift+PCtrl+Shift+P
Write a commit message Cmd+SCtrl+SCtrl+S

Source Code Browsing7 SHORTCUTS

Activates the file finder TTT
Jump to a line in your code LLL
Switch to a new branch or tag WWW
Expand a URL to its canonical form YYY
Show or hide comments on diffs III
Show or hide annotations on diffs AAA
Open blame view BBB

Navigating Within Code Files3 SHORTCUTS

Highlights the line that is currently selected by the cursor within the code file Shift+JShift+JShift+J
If a line of code is currently selected, this shortcut opens the line menu for that line Opt+Shift+CAlt+Shift+CAlt+Shift+C
Highlights the code symbol currently selected by the cursor and all other occurrences of the symbol in the code, and shows the symbol in the symbols pane Cmd+EnterCtrl+EnterCtrl+Enter

Comments15 SHORTCUTS

Inserts Markdown formatting for bolding text Cmd+BCtrl+BCtrl+B
Inserts Markdown formatting for italicizing text Cmd+ICtrl+ICtrl+I
Inserts Markdown formatting for code or a command within a line Cmd+ECtrl+ECtrl+E
Inserts Markdown formatting for creating a link Cmd+KCtrl+KCtrl+K
Creates a Markdown link when applied over highlighted text Cmd+VCtrl+VCtrl+V
Toggles between the Write and Preview comment tabs Shift+Cmd+PCtrl+Shift+PCtrl+Shift+P
Pastes HTML link as plain text Shift+Cmd+VCtrl+Shift+VCtrl+Shift+V
Pastes HTML link as plain text Opt+Shift+Cmd+VCtrl+Alt+Shift+VCtrl+Alt+Shift+V
Inserts Markdown formatting for an ordered list Shift+Cmd+7Ctrl+Shift+7Ctrl+Shift+7
Inserts Markdown formatting for an unordered list Shift+Cmd+8Ctrl+Shift+8Ctrl+Shift+8
Submits a comment Cmd+EnterCtrl+EnterCtrl+Enter
Opens saved replies menu and then autofills comment field with a saved reply Ctrl+.Ctrl+.Ctrl+.
Inserts Markdown formatting for a quote Shift+Cmd+.Ctrl+Shift+.Ctrl+Shift+.
Insert a suggestion Cmd+GCtrl+GCtrl+G
Quote the selected text in your reply RRR

Issue and pull request lists9 SHORTCUTS

Create an issue CCC
Focus your cursor on the issues or pull requests search bar Cmd+/Ctrl+/Ctrl+/
Filter by author UUU
Filter by or edit labels LLL
While filtering by labels, exclude labels OptAltAlt
Filter by or edit milestones MMM
Filter by or edit assignee AAA
Open issue OOO
Open issue EnterEnterEnter
The BuildBox Macropad Puts Keyboard Shortcuts at Your Fingertips! LEARN MORE →

Issues and pull requests12 SHORTCUTS

Request a reviewer QQQ
Set a milestone MMM
Apply a label LLL
Set an assignee AAA
Link an issue or pull request from the same repository XXX
Toggle between the Write and Preview tabs Shift+Cmd+PCtrl+Shift+PCtrl+Shift+P
When creating an issue from a task list, open the new issue form in the current tab OptAltAlt
When creating an issue from a task list, open the new issue form in a new tab ShiftShiftShift
When creating an issue from a task list, open the new issue form in the new window CmdCtrl+ShiftCtrl+Shift
Create a new sub-issue Opt+Shift+CAlt+Shift+CAlt+Shift+C
Add an existing issue as sub-issue Opt+Shift+AAlt+Shift+AAlt+Shift+A
Edit parent issue Opt+Shift+PAlt+Shift+PAlt+Shift+P

Files changed tab in pull requests5 SHORTCUTS

Open the Commits dropdown menu to filter which commits are shown in the diffs CCC
Move your cursor to the Filter changed files field TTT
Submit a review comment Shift+Cmd+EnterCtrl+Shift+EnterCtrl+Shift+Enter
Toggle between collapsing and expanding all outdated or resolved review comments in a pull request OptAltAlt
Comment on multiple lines of a pull request ShiftShiftShift

Projects - Navigating a project5 SHORTCUTS

Focus filter field Cmd+FCtrl+FCtrl+F
Move focus to the left LeftLeftLeft
Move focus to the right RightRightRight
Move focus up UpUpUp
Move focus down DownDownDown

Projects - Manipulating a project8 SHORTCUTS

Toggle edit mode for the focused cell EnterEnterEnter
Cancel editing for the focused cell EscEscEsc
Open row actions menu Shift+Cmd+\Ctrl+Shift+\Ctrl+Shift+\
Select item Shift+SpaceShift+SpaceShift+Space
Add cell or card below to selection Shift+DownShift+DownShift+Down
Add cell or card above to selection Shift+UpShift+UpShift+Up
Open selected item SpaceSpaceSpace
Archive selected items EEE

Projects - Moving cards on the board layout11 SHORTCUTS

Start moving the selected card(s) / Complete the move in progress EnterEnterEnter
Start moving the selected card(s) Shift+SpaceShift+SpaceShift+Space
Cancel the move in progress EscEscEsc
Move a single card down DownDownDown
Move a single card to the bottom of the column Cmd+DownCtrl+DownCtrl+Down
Move a single card up UpUpUp
Move a single card to the top of the column Cmd+UpCtrl+UpCtrl+Up
Move card(s) left LeftLeftLeft
Move card(s) to the leftmost column Cmd+LeftCtrl+LeftCtrl+Left
Move card(s) right RightRightRight
Move card(s) to the rightmost column Cmd+RightCtrl+RightCtrl+Right

GitHub Actions7 SHORTCUTS

In the workflow editor, get suggestions for your workflow file Cmd+SpaceCtrl+SpaceCtrl+Space
Go to the workflow file G+FG+FG+F
Toggle timestamps in logs Shift+TShift+TShift+T
Toggle timestamps in logs TTT
Toggle full-screen logs Shift+FShift+FShift+F
Toggle full-screen logs FFF
Exit full-screen logs EscEscEsc

Notifications4 SHORTCUTS

Mark as done EEE
Mark as unread Shift+UShift+UShift+U
Mark as read Shift+IShift+IShift+I
Unsubscribe Shift+MShift+MShift+M

Network graph12 SHORTCUTS

Scroll left LeftLeftLeft
Scroll left HHH
Scroll right RightRightRight
Scroll right LLL
Scroll up UpUpUp
Scroll up KKK
Scroll down DownDownDown
Scroll down JJJ
Scroll all the way left Shift+LeftShift+HShift+H
Scroll all the way right Shift+RightShift+LShift+L
Scroll all the way up Shift+UpShift+KShift+K
Scroll all the way down Shift+DownShift+JShift+J

Noticed errors or keyboard shortcuts that don't work? Please let us know about them here →

The BuildBox Macropad Unlocks Thousands of Keyboard Shortcuts For Any App

The BuildBox Macropad
Available early December

That's why the BuildBox Macropad is the Ultimate Shortcut Machine. One device with infinite shortcuts available at your fingertips, plus a HUGE display showing what each key does, and a magnet-powered zero-friction scroll wheel that moves through documents, video, audio and graphic editing apps like butter!

Enter your Email to get your hands on a launch batch BuildBox (limited: 200 available):

Keyboard Shortcuts for Similar Applications