GitHub Keyboard Shortcuts Cheat Sheet for Windows and Mac

GitHub is a code hosting platform for software development and version control. It provides many collaboration features like bug tracking, continuous integration, feature requests, task management, and wikis for every project.

GitHub is considered to be the best choice for collaborative version control software. Community support, project management, security, automation, CI/CD, and team administration, are the features that make GitHub second to none.

If you want to make your life easier while working on projects, you can make use of these keyboard shortcuts.

FREE DOWNLOAD: This cheat sheet is available as a downloadable PDF from our distribution partner, TradePub. You will have to complete a short form to access it for the first time only. Download the GitHub Keyboard Shortcuts Cheat Sheet.

GitHub Keyboard Shortcuts for Windows and Mac

SHORTCUT (WINDOWS)SHORTCUT (MAC)ACTION
SITE WIDE SHORTCUTS
??Show keyboard shortcuts for current page
SSFocus the search bar
G + NG + NGo to your notifications
HHOpens and focuses on a user, issue, or pull request hovercard
EscEscWhen focused on above, closes hovercard
G + DG + DGo to the dashboard
EnterEnterOpen selection
REPOSITORIES
G + CG + CGo to the Code tab
G + IG + IGo to the Issues tab
G + PG + PGo to the Pull requests tab
G + AG + AGo to the Actions tab
G + BG + BGo to the Projects tab
G + WG + WGo to the Wiki tab
G + GG + GGo to the Discussions tab
SOURCE CODE BROWSING
WWSwitch to a new branch or tag
TTActivates the file finder
LLJump to a line in your code
YYExpand a URL to its canonical form
BBOpen blame view
IIShow or hide comments on diffs
AAShow or hide annotations on diffs
SOURCE CODE EDITING
Ctrl + B⌘ + BInserts Markdown formatting for bolding text
Ctrl + I⌘ + IInserts Markdown formatting for italicizing text
Ctrl + K⌘ + KInserts Markdown formatting for creating a link
EEOpen source code file in the Edit file tab
Ctrl + F⌘ + FSearch in file editor
Ctrl + G⌘ + GFind next
Shift + Ctrl + GShift + ⌘ + GFind previous
Alt + GAlt + GJump to line
Ctrl + S⌘ + SWrite a commit message
Ctrl + Z⌘ + ZUndo
Ctrl + Y⌘ + YRedo
Shift + Ctrl + F⌘ + Option + FReplace
Shift + Ctrl + RShift + ⌘ + Option + FReplace all
ISSUES AND PULL REQUESTS
QQRequest a reviewer
LLApply a label
Ctrl + Shift + P⌘ + Shift + PToggles between the Write and Preview tabs
MMSet a milestone
AASet an assignee
CCOpen the list of commits in the pull request
TTOpen the list of changed files in the pull request
JJMove selection down in the list
KKMove selection up in the list
Ctrl + Shift + Enter⌘ + Shift + EnterAdd a single comment on a pull request diff
Alt + (Click)Option + (Click)Toggle between collapsing and expanding all outdated review comments in a pull request
ISSUE AND PULL REQUEST LISTS
CCCreate an issue
OOOpen issue
UUFilter by author
Ctrl + /⌘ + /Focus your cursor on the issues or pull requests search bar
LLFilter by or edit labels
MMFilter by or edit milestones
AAFilter by or edit assignee
COMMENTS
Ctrl + Shift + P⌘ + Shift + PToggles between the Write and Preview comment tabs
Ctrl + Enter⌘ + EnterSubmits a comment
Ctrl + B⌘ + BInserts Markdown formatting for bolding text
Ctrl + I⌘ + IInserts Markdown formatting for italicizing text
Ctrl + K⌘ + KInserts Markdown formatting for creating a link
Ctrl + . and then Ctrl + [saved reply number]⌘ + . and then ⌘ + [saved reply number]Opens saved replies menu and then autofills comment field with a saved reply
Ctrl + G⌘ + GInsert a suggestion
RRQuote the selected text in your reply
MOVING A COLUMN (PROJECT BOARDS)
EnterEnterStart moving the focused column
EscEscCancel the move in progress
EnterEnterComplete the move in progress
Arrow LeftArrow LeftMove column to the left
Ctrl + Arrow Left⌘ + Arrow LeftMove column to the leftmost position
Arrow RightArrow RightMove column to the right
Ctrl + Arrow Right⌘ + Arrow RightMove column to the rightmost position
MOVING A CARD (PROJECT BOARDS)
EnterEnterStart moving the focused card
EscEscCancel the move in progress
EnterEnterComplete the move in progress
Arrow DownArrow DownMove card down
Ctrl + Arrow Down⌘ + Arrow DownMove card to the bottom of the column
Arrow UpArrow UpMove card up
Ctrl + Arrow Up⌘ + Arrow UpMove card to the top of the column
Arrow LeftArrow LeftMove card to the bottom of the column on the left
Shift + Arrow LeftShift + Arrow LeftMove card to the top of the column on the left
Ctrl + Arrow Left⌘ + Arrow LeftMove card to the bottom of the leftmost column
Ctrl + Shift + Arrow Left⌘ + Shift + Arrow LeftMove card to the top of the leftmost column
Arrow RightArrow RightMove card to the bottom of the column on the right
Shift + Arrow RightShift + Arrow RightMove card to the top of the column on the right
Ctrl + Arrow Right⌘ + Arrow RightMove card to the bottom of the rightmost column
Ctrl + Shift + Arrow Right⌘ + Shift + Arrow RightMove card to the bottom of the rightmost column
PREVIEWING A CARD (PROJECT BOARDS)
EscEscClose the card preview pane
NETWORK GRAPH
Arrow LeftArrow LeftScroll left
Arrow RightArrow RightScroll right
Arrow UpArrow UpScroll up
Arrow DownArrow DownScroll down
Shift + Arrow LeftShift + Arrow LeftScroll all the way left
Shift + Arrow RightShift + Arrow RightScroll all the way right
Shift + Arrow UpShift + Arrow UpScroll all the way up
Shift + Arrow DownShift + Arrow DownScroll all the way down
GITHUB ACTIONS
Ctrl + Space⌘ + SpaceIn the workflow editor, get suggestions for your workflow file
G + FG + FGo to the workflow file
TTToggle timestamps in logs
FFToggle full-screen logs
EscEscExit full-screen logs
NOTIFICATIONS
EEMark as done
Shift + UShift + UMark as unread
Shift + IShift + IMark as read
Shift + MShift + MUnsubscribe

Contribute to GitHub Repositories

You can use your skills to contribute to open-source repositories on GitHub. It would build your confidence as a developer as well as it would help you strengthen your resume.

Nowadays, contributing to GitHub is a social trend among coding communities. Consider joining this coding trend and contribute to the GitHub repositories.

You Might Also Like