GitHub cheat sheet

47 shortcuts in 9 lessons

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Site wide

7 shortcuts
  • S
    Focus search bar
  • GN
    Go to notifications
  • GD
    Go to dashboard
  • J
    Move selection down
  • K
    Move selection up
  • X
    Toggle selection
  • ↵
    Open selection

Repositories

4 shortcuts
  • GC
    Go to code
  • GI
    Go to issues
  • GP
    Go to pull requests
  • GW
    Go to wiki

Source Code Browsing

5 shortcuts
  • T
    Activate the file finder
  • L
    Jump to line
  • W
    Switch branch/tag
  • Y
    Expand URL to its canonical form
  • I
    Show/hide all inline notes

Issues

9 shortcuts
  • ⌘↵
    Submit comment
  • ⌘⇧P
    Preview comment
  • ⌘⇧L
    Go fullscreen
  • C
    Create issue
  • /
    Focus issues search bar
  • L
    Filter by or edit labels
  • M
    Filter by or edit milestones
  • A
    Filter by or edit assignee
  • R
    Reply (quoting selected text)

Browsing Commits

4 shortcuts
  • ⌘↵
    Submit comment
  • ESC
    Close form
  • P
    Parent commit
  • O
    Other parent commit

Dashboards

2 shortcuts
  • GI
    Go to your issues
  • GP
    Go to your pull requests

Notifications

2 shortcuts
  • E
    Mark as read
  • ⇧M
    Mute thread

Pull Request List

5 shortcuts
  • R
    Reply (quoting selected text)
  • ↵
    Open issue
  • ⌘↵
    Submit comment
  • ⌘⇧P
    Preview comment
  • ⌘⇧L
    Go fullscreen

Network Graph

9 shortcuts
  • H
    Scroll left
  • L
    Scroll right
  • K
    Scroll up
  • J
    Scroll down
  • T
    Toggle visibility of head labels
  • ⇧H
    Scroll all the way left
  • ⇧L
    Scroll all the way right
  • ⇧K
    Scroll all the way up
  • ⇧J
    Scroll all the way down
Achievement unlocked