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.
Back to Dev ToolsRepository Browsing 8
TOpen file finder
YConvert URL to a permalink
WSwitch branch/tag selector
BOpen Issue template
IOpen Issues list
POpen PRs list
CCreate new file
UUp to parent directory
Code Browsing 7
1-9Jump to a line number
Cmd + /Toggle line comment
Cmd + FSearch file content
Cmd + GGo to next match
Cmd + Shift + GGo to previous match
Cmd + Shift + FSearch globally
Cmd + Shift + POpen Command Palette
Issues & PRs 11
CCreate new Issue/PR
Cmd + EnterSubmit comment
Cmd + Option + EnterClose and comment
Cmd + Shift + PToggle preview/edit
Cmd + BBold text
Cmd + IItalic text
Cmd + KInsert link
Cmd + Option + IInsert image
Cmd + Shift + 7Ordered list
Cmd + Shift + 8Unordered list
Cmd + Shift + 9Task list
Code Review 6
Cmd + EnterSubmit review
Cmd + Option + EnterApprove PR
Cmd + Shift + EnterRequest changes
Cmd + Shift + 7Add single-line comment
Cmd + Shift + 8Add multi-line comment
Cmd + Shift + 9Add pending comment
Markdown Editing 10
Cmd + BBold
Cmd + IItalic
Cmd + KInsert link
Cmd + Option + IInsert image
Cmd + Shift + 7Ordered list
Cmd + Shift + 8Unordered list
Cmd + Shift + 9Task list
Cmd + Shift + .Quote
Cmd + Shift + CCode block
Cmd + Shift + HHeading
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