GitHub Keyboard Shortcuts Cheat Sheet
Cheat sheet for 80 keyboard shortcuts on GitHub.com.
Site-wide Shortcuts
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Focus search bar | S |
S |
| Go to your notifications | G + N |
G + N |
| Open and focus hover card for user, issue, or pull request | H |
H |
| Close hover card when focused | Esc |
Esc |
Repositories
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Go to the Code tab | G + C |
G + C |
| Go to the Issues tab | G + I |
G + I |
| Go to the Pull Requests tab | G + P |
G + P |
| Go to the Projects tab | G + B |
G + B |
| Go to the Wiki tab | G + W |
G + W |
Source Code Editing
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Start search in file editor | Cmd + F |
Ctrl + F |
| Find next | Cmd + G |
Ctrl + G |
| Find previous | Cmd + Shift + G |
Ctrl + Shift + G |
| Replace | Cmd + Shift + F |
Ctrl + Shift + F |
| Replace all | Cmd + Shift + R |
Ctrl + Shift + R |
| Jump to line | Alt + G |
Alt + G |
| Undo | Cmd + Z |
Ctrl + Z |
| Redo | Cmd + Y |
Ctrl + Y |
Source Code Browsing
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Activate file finder | T |
T |
| Jump to a line in code | L |
L |
| Switch to a new branch or tag | W |
W |
| Expand URL to its canonical form | Y |
Y |
| Show or hide diff comments | I |
I |
| Open blame view | B |
B |
Comments
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Insert Markdown format to bold text | Cmd + B |
Ctrl + B |
| Insert Markdown format to italicize text | Cmd + I |
Ctrl + I |
| Insert Markdown format to create a link | Cmd + K |
Ctrl + K |
| Switch between Write and Preview tabs for comments | Cmd + Shift + P |
Ctrl + Shift + P |
| Submit comment | Cmd + Enter |
Ctrl + Enter |
| Open saved replies menu and auto-fill comment field | Cmd + . |
Ctrl + . |
| Insert suggestion | Cmd + G |
Ctrl + G |
| Quote selected text in reply | R |
R |
Issue and Pull Request Lists
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Create an issue | C |
C |
| Focus cursor on issue or pull request search bar | Cmd + / |
Ctrl + / |
| Filter by author | U |
U |
| Filter by or edit labels | L |
L |
| Filter by or edit milestones | M |
M |
| Filter by or edit assignees | A |
A |
| Open issue | O |
O |
Issues and Pull Requests
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Request reviewers | Q |
Q |
| Set milestone | M |
M |
| Apply labels | L |
L |
| Set assignee | A |
A |
Changes in Pull Requests
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Open commit list in pull request | C |
C |
| Open list of changed files in pull request | T |
T |
| Move selection down in the list | J |
J |
| Move selection up in the list | K |
K |
| Add a comment on pull request diff | Cmd + Shift + Enter |
Ctrl + Shift + Enter |
| Toggle between collapsing and expanding all outdated review comments | Alt + (click) |
Alt + (click) |
Project Boards
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Begin moving focused column | Enter/Space |
Enter/Space |
| Cancel current move | Esc |
Esc |
| Complete current move | Enter |
Enter |
| Move column to the left | Left/H |
Left/H |
| Move column to the leftmost position | Cmd + Left/H |
Ctrl + Left/H |
| Move column to the right | Right/L |
Right/L |
| Move column to the rightmost position | Cmd + Right/L |
Ctrl + Right/L |
| Begin moving focused card | Enter/Space |
Enter/Space |
| Cancel current move | Esc |
Esc |
| Complete current move | Enter |
Enter |
| Move card down | Down/J |
Down/J |
| Move card to the bottom of column | Cmd + Down/J |
Ctrl + Down/J |
| Move card up | Up/K |
Up/K |
| Move card to the top of column | Cmd + Up/K |
Ctrl + Up/K |
| Move card to the bottom of the left column | Left/H |
Left/H |
| Move card to the top of the left column | Shift + Left/H |
Shift + Left/H |
| Move card to the bottom of the leftmost column | Cmd + Left/H |
Ctrl + Left/H |
| Move card to the top of the leftmost column | Cmd + Shift + Left/H |
Ctrl + Shift + Left/H |
| Move card to the bottom of the right column | Right/L |
Right/L |
| Move card to the top of the right column | Shift + Right/L |
Shift + Right/L |
| Move card to the bottom of the rightmost column | Cmd + Right/L |
Ctrl + Right/L |
| Move card to the top of the rightmost column | Cmd + Shift + Right/L |
Ctrl + Shift + Right/L |
Notifications
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Mark as read | E/L/Y |
E/L/Y |
| Mute thread | Shift + M |
Shift + M |
Network Graph
| Action | Mac Shortcut | Win Shortcut |
|---|---|---|
| Scroll left | Left/H |
Left/H |
| Scroll right | Right/L |
Right/L |
| Scroll up | Up/K |
Up/K |
| Scroll down | Down/J |
Down/J |
| Scroll all the way left | Shift + Left/H |
Shift + Left/H |
| Scroll all the way right | Shift + Right/L |
Shift + Right/L |
| Scroll all the way up | Shift + Up/K |
Shift + Up/K |
| Scroll all the way down | Shift + Down/J |
Shift + Down/J |