GitHub Cheatsheet - Code Hosting Platform Shortcut Reference

All essential GitHub commands organized by use case, with 50+ entries you can copy and run directly. Find the right command fast when you need it.

Dev Tools·50 commands·Last updated 2026-07-21
Back to Dev Tools

Repository Browsing 8

T
Open file finder
Y
Convert URL to a permalink
W
Switch branch/tag selector
B
Open Issue template
I
Open Issues list
P
Open PRs list
C
Create new file
U
Up to parent directory

Code Browsing 7

1-9
Jump to a line number
Cmd + /
Toggle line comment
Cmd + F
Search file content
Cmd + G
Go to next match
Cmd + Shift + G
Go to previous match
Cmd + Shift + F
Search globally
Cmd + Shift + P
Open Command Palette

Issues & PRs 11

C
Create new Issue/PR
Cmd + Enter
Submit comment
Cmd + Option + Enter
Close and comment
Cmd + Shift + P
Toggle preview/edit
Cmd + B
Bold text
Cmd + I
Italic text
Cmd + K
Insert link
Cmd + Option + I
Insert image
Cmd + Shift + 7
Ordered list
Cmd + Shift + 8
Unordered list
Cmd + Shift + 9
Task list

Code Review 6

Cmd + Enter
Submit review
Cmd + Option + Enter
Approve PR
Cmd + Shift + Enter
Request changes
Cmd + Shift + 7
Add single-line comment
Cmd + Shift + 8
Add multi-line comment
Cmd + Shift + 9
Add pending comment

Markdown Editing 10

Cmd + B
Bold
Cmd + I
Italic
Cmd + K
Insert link
Cmd + Option + I
Insert image
Cmd + Shift + 7
Ordered list
Cmd + Shift + 8
Unordered list
Cmd + Shift + 9
Task list
Cmd + Shift + .
Quote
Cmd + Shift + C
Code block
Cmd + Shift + H
Heading

Tips

  • The T key opens the file finder - much faster than clicking, with fuzzy filename matching.
  • The Y key converts the URL to a permalink (commit hash) to share a specific version.
  • Cmd+Enter submits a comment, Cmd+Option+Enter closes and comments - no button clicking.
  • During code review, Cmd+Shift+7 quickly adds a single-line comment.
  • The Markdown editor supports Cmd+B bold, Cmd+I italic, Cmd+K insert link.
  • The ? key shows all keyboard shortcuts - check anytime.

Official References

Commands are compiled from the official docs below. Click to verify the latest usage.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us