GitHub Keyboard Shortcuts Cheat Sheet
A visual cheat sheet for 80 keyboard shortcuts on GitHub.com.
Site-wide Shortcuts
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Focus search bar | S |
S |
| Go to notifications | G + N |
G + N |
| Open and focus user, issue, or pull request hovercard | H |
H |
| Close hovercard (when focused) | Esc |
Esc |
Repositories
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Go to Code tab | G + C |
G + C |
| Go to Issues tab | G + I |
G + I |
| Go to Pull requests tab | G + P |
G + P |
| Go to Projects tab | G + B |
G + B |
| Go to Wiki tab | G + W |
G + W |
Source Code Editing
| Operation | 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
| Operation | 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 canonical form | Y |
Y |
| Show or hide diff comments | I |
I |
| Open blame view | B |
B |
Comments
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Bold text (Markdown) | Cmd + B |
Ctrl + B |
| Italicize text (Markdown) | Cmd + I |
Ctrl + I |
| Create link (Markdown) | Cmd + K |
Ctrl + K |
| Toggle Write and Preview tabs | Cmd + Shift + P |
Ctrl + Shift + P |
| Submit comment | Cmd + Enter |
Ctrl + Enter |
| Open saved replies menu | Cmd + . |
Ctrl + . |
| Insert suggestion | Cmd + G |
Ctrl + G |
| Quote selected text in reply | R |
R |
Issue and Pull Request Lists
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Create issue | C |
C |
| Focus issue or PR 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 assignee | A |
A |
| Open issue | O |
O |
Issues and Pull Requests
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Request reviewers | Q |
Q |
| Set milestone | M |
M |
| Apply labels | L |
L |
| Set assignee | A |
A |
Changes in Pull Requests
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Open commit list in PR | C |
C |
| Open list of changed files in PR | T |
T |
| Move selection down in list | J |
J |
| Move selection up in list | K |
K |
| Add a comment on a PR diff | Cmd + Shift + Enter |
Ctrl + Shift + Enter |
| Toggle all outdated review comments | Alt + (click) |
Alt + (click) |
Project Boards
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Start moving focused column | Enter/Space |
Enter/Space |
| Cancel current move | Esc |
Esc |
| Complete current move | Enter |
Enter |
| Move column left | Left/H |
Left/H |
| Move column to leftmost position | Cmd + Left/H |
Ctrl + Left/H |
| Move column right | Right/L |
Right/L |
| Move column to rightmost position | Cmd + Right/L |
Ctrl + Right/L |
| Start moving focused card | Enter/Space |
Enter/Space |
| Cancel current card move | Esc |
Esc |
| Complete current card move | Enter |
Enter |
| Move card down | Down/J |
Down/J |
| Move card to bottom of column | Cmd + Down/J |
Ctrl + Down/J |
| Move card up | Up/K |
Up/K |
| Move card to top of column | Cmd + Up/K |
Ctrl + Up/K |
| Move card to bottom of left column | Left/H |
Left/H |
| Move card to top of left column | Shift + Left/H |
Shift + Left/H |
| Move card to bottom of leftmost column | Cmd + Left/H |
Ctrl + Left/H |
| Move card to top of leftmost column | Cmd + Shift + Left/H |
Ctrl + Shift + Left/H |
| Move card to bottom of right column | Right/L |
Right/L |
| Move card to top of right column | Shift + Right/L |
Shift + Right/L |
| Move card to bottom of rightmost column | Cmd + Right/L |
Ctrl + Right/L |
| Move card to top of rightmost column | Cmd + Shift + Right/L |
Ctrl + Shift + Right/L |
Notifications
| Operation | Mac Shortcut | Win Shortcut |
|---|---|---|
| Mark as read | E/L/Y |
E/L/Y |
| Mute thread | Shift + M |
Shift + M |
Network Graph
| Operation | 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 |