========================= GitHub keyboard shortcuts ========================= First published at 5/21/2018 on https://defkey.com/github-shortcuts GitHub is a web-based version control service. It uses git and mostly used for computer code. GitHub offers plans for private repositories and free accounts. GitHub says it has 20 million users and 57 million repositories as of April 2017, which makes it the largest host of source code. GitHub has 130 shortcuts and we have listed all of them below. Using keyboard shortcuts ------------------------ Most pages on GitHub has keyboards shortcuts for performing actions faster. You can type ? to see the list of keyboard shortcuts available for that page. Site wide shortcuts ------------------- S Focus the search bar / Focus the search bar G then N Go to your notifications H Open and focus on a user hovercard Esc When focused on a user hovercard, closes the hovercard and refocuses on the element the hovercard is in Repositories ------------ G then C Go to the Code tab G then I Go to the Issues tab G then P Go to the Pull requests tab G then B Go to the Projects tab G then W Go to the Wiki tab Source code editing ------------------- Control + F Start searching in file editor Cmd + F Start searching in file editor Control + G Find next Cmd + G Find next Shift + Control + G Find previous Shift + Cmd + G Find previous Shift + Control + F Replace Cmd + Option + F Replace Shift + Control + R Replace all Shift + Cmd + Option + F Replace all Alt + G Jump to line Control + Z Undo Cmd + Z Undo Control + Y Redo Cmd + Y Redo For more keyboard shortcuts, see the CodeMirror shortcuts page. Source code browsing -------------------- T Activate the file finder L Jump to a line in your code W Switch to a new branch or tag Y Expand a URL to its canonical form I Show or hide comments on diffs B Open blame view Comments -------- Control + B Insert Markdown formatting for bolding text Cmd + B Insert Markdown formatting for bolding text Control + I Insert Markdown formatting for italicizing text Cmd + I Insert Markdown formatting for italicizing text Control + K Insert Markdown formatting for creating a link Cmd + K Insert Markdown formatting for creating a link Control + Shift + P Toggle between the Write and Preview comment tabs Cmd + Shift + P Toggle between the Write and Preview comment tabs Control + Enter Submit a comment Control then Control then [Num 0 - 9] Opens saved replies menu and then autofills comment field with a saved reply. Issue and pull request lists ---------------------------- C Create an issue U Filter by author L Filter by or edit labels M Filter by or edit milestones A Filter by or edit assignee R Quote the selected text in your reply O Open issue Enter Open issue Issues and pull requests ------------------------ Q Request a reviewer M Set a milestone L Apply a label A Set an assignee Changes in pull requests ------------------------ C Open the list of commits in the pull request T Open the list of changed files in the pull request J Move selection down in the list K Move selection up in the list Project boards: Moving a column ------------------------------- Enter Start moving the focused column Space Start moving the focused column Esc Cancel the move in progress Enter Complete the move in progress Left arrow Move column to the left H Move column to the left Cmd + Left arrow Move column to the leftmost position Cmd + H Move column to the leftmost position Control + H Move column to the leftmost position Right arrow Move column to the right I Move column to the right Cmd + Right arrow Move column to the rightmost position Cmd + I Move column to the rightmost position Control + I Move column to the rightmost position Project boards: Moving a card ----------------------------- Enter Start moving the focused card Space Start moving the focused card Esc Cancel the move in progress Enter Complete the move in progress Down arrow Move card down J Move card down Cmd + Down arrow Move card down Cmd + J Move card down Control + Down arrow Move card down Control + J Move card to the bottom of the column Up arrow Move card up K Move card up Cmd + Up arrow Move card to the top of the column Cmd + K Move card to the top of the column Control + Up arrow Move card to the top of the column Control + K Move card to the top of the column Left arrow Move card to the bottom of the column on the left H Move card to the bottom of the column on the left Shift + Left arrow Move card to the top of the column on the left Shift + H Move card to the top of the column on the left Cmd + Left arrow Move card to the bottom of the leftmost column Cmd h Move card to the bottom of the leftmost column Control + Left arrow Move card to the bottom of the leftmost column Control + H Move card to the bottom of the leftmost column Cmd + Shift + Left arrow Move card to the top of the leftmost column Cmd + Shift + H Move card to the top of the leftmost column Control + Shift + Left arrow Move card to the top of the leftmost column Control + Shift + H Move card to the top of the leftmost column Right arrow Move card to the bottom of the column on the right Shift + Right arrow Move card to the top of the column on the right Shift + L Move card to the top of the column on the right Cmd + Right arrow Move card to the bottom of the rightmost column Cmd + L Move card to the bottom of the rightmost column Control + Right arrow Move card to the bottom of the rightmost column Control + L Move card to the bottom of the rightmost column Cmd + Shift + Right arrow Move card to the bottom of the rightmost column Cmd + Shift + L Move card to the bottom of the rightmost column Control + Shift + Right arrow Move card to the bottom of the rightmost column Control + Shift + L Move card to the bottom of the rightmost column Notifications ------------- E Mark as read I Mark as read Y Mark as read Shift + M Mute thread Network Graph ------------- Left arrow Scroll left H Scroll left Right arrow Scroll right I Scroll right Up arrow Scroll up K Scroll up Down arrow Scroll down J Scroll down Left arrow Scroll all the way left Shift + H Scroll all the way left Shift + Right arrow Scroll all the way right Shift + I Scroll all the way right Shift + Up arrow Scroll all the way up Shift + K Scroll all the way up Shift + Down arrow Scroll all the way down Shift + J Scroll all the way down Source: GitHub help Last modified on (UTC): Monday, November 11, 2019 Defkey © All rights reserved.