Keyboard shortcuts - GitHub Docs

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

Keyboard shortcuts - GitHub Docs

Github

A visual cheat-sheet for the 80 keyboard shortcuts found on Github.com

Reference Link

Overview

Total Shortcuts: 80

  • Site wide shortcuts:4 shortcuts
  • Repositories:5 shortcuts
  • Source code editing:8 shortcuts
  • Source code browsing:6 shortcuts
  • Comments:8 shortcuts
  • Issue and pull request lists:7 shortcuts
  • Issues and pull requests:4 shortcuts
  • Changes in pull requests:6 shortcuts
  • Project boards:22 shortcuts
  • Notifications:2 shortcuts
  • Network graph:8 shortcuts

Site wide shortcuts

  • Focus the search barS
  • Go to your notificationsG + N
  • Opens and focuses on a user, issue, or pull request hovercardH
  • When focused on above, closes hovercardEsc

Repositories

  • Go to the Code tabG + C
  • Go to the Issues tabG + I
  • Go to the Pull requests tabG + P
  • Go to the Projects tabG + B
  • Go to the Wiki tabG + W

Source code editing

  • Start searching in file editorCtrl + F
  • Find nextCtrl + G
  • Find previousCtrl + Shift + G
  • ReplaceCtrl + Shift + F
  • Replace allCtrl + Shift + R
  • Jump to lineAlt + G
  • UndoCtrl + Z
  • RedoCtrl + Y

Source code browsing

  • Activates the file finderT
  • Jump to a line in your codeL
  • Switch to a new branch or tagW
  • Expand a URL to its canonical formY
  • Show or hide comments on diffsI
  • Open blame viewB

Comments

  • Inserts Markdown formatting for bolding textCtrl + B
  • Inserts Markdown formatting for italicizing textCtrl + I
  • Inserts Markdown formatting for creating a linkCtrl + K
  • Toggles between the Write and Preview comment tabsCtrl + Shift + P
  • Submits a commentCtrl + Enter
  • Opens saved replies menu and then autofills comment field with a saved replyCtrl + .
  • Inserts a suggestionsCtrl + G
  • Quote the selected text in your replyR

Issue and pull request lists

  • Create an issueC
  • Focus your cursor on the issues or pull requests search barCtrl + /
  • Filter by authorU
  • Filter by or edit labelsL
  • Filter by or edit milestonesM
  • Filter by or edit assigneeA
  • Open issueO

Issues and pull requests

  • Request a reviewerQ
  • Set a milestoneM
  • Apply a labelL
  • Set an assigneeA

Changes in pull requests

  • Open the list of commits in the pull requestC
  • Open the list of changed files in the pull requestT
  • Move selection down in the listJ
  • Move selection up in the listK
  • Add a single comment on a pull request diffCtrl + Shift + Enter
  • Toggle between collapsing and expanding all outdated review comments in a pull requestAlt + (click)

Project boards

  • Start moving the focused columnEnter/Space
  • Cancel the move in progressEsc
  • Complete the move in progressEnter
  • Move column to the leftLeft/H
  • Move column to the leftmost positionCtrl + Left/H
  • Move column to the rightRight/L
  • Move column to the rightmost positionCtrl + Right/L
  • Start moving the focused cardEnter/Space
  • Cancel the move in progressEsc
  • Complete the move in progressEnter
  • Move card downDown/J
  • Move card to the bottom of the columnCtrl + Down/J
  • Move card upUp/K
  • Move card to the top of the columnCtrl + Up/K
  • Move card to the bottom of the column on the leftLeft/H
  • Move card to the top of the column on the leftShift + Left/H
  • Move card to the bottom of the leftmost columnCtrl + Left/H
  • Move card to the top of the leftmost columnCtrl + Shift + Left/H
  • Move card to the bottom of the column on the rightRight
  • Move card to the top of the column on the rightShift + Right/L
  • Move card to the bottom of the rightmost columnCtrl + Right/L
  • Move card to the top of the rightmost columnCtrl + Shift + Right/L

Notifications

  • Mark as readE/L/Y
  • Mute threadShift + M

Network graph

  • Scroll leftLeft/H
  • Scroll rightRight/L
  • Scroll upUp/K
  • Scroll downDown/J
  • Scroll all the way leftShift + Left/H
  • Scroll all the way rightShift + Right/L
  • Scroll all the way upShift + Up/K
  • Scroll all the way downShift + Down/J

Startup.detail.introduction

  • S or /: Focus the search bar
  • G N: Go to your notifications
  • G C: Go to the Code tab
  • Command+B (Mac) or Ctrl+B (Windows/Linux): Inserts Markdown formatting for bolding text

Users can disable character key shortcuts in their accessibility settings. The GitHub Command Palette also provides quick access to a wide range of actions without the need to remember keyboard shortcuts.