Keyboard shortcuts in GitHub Desktop

You can use keyboard shortcuts in GitHub Desktop.

GitHub Desktop keyboard shortcuts on macOS

Site wide shortcuts

Keyboard shortcut Description
, Go to Preferences
H Hide the GitHub Desktop application
H Hide all other applications
Q Quit GitHub Desktop
F Toggle full screen view
0 Reset zoom to default text size
= Zoom in for larger text and graphics
- Zoom out for smaller text and graphics
I Toggle Developer Tools

Repositories

Keyboard shortcut Description
N Add a new repository
O Add a local repository
O Clone a repository from GitHub
T Show a list of your repositories
P Push the latest commits to GitHub
P Pull down the latest changes from GitHub
Remove an existing repository
G View the repository on GitHub
` Open repository in your preferred terminal tool
F Show the repository in Finder
A Open the repository in your preferred editor tool

Branches

Keyboard shortcut Description
1 Show all your changes before committing
2 Show your commit history
B Show all your branches
G Go to the commit summary field
N Create a new branch
R Rename the current branch
D Delete the current branch
U Update from default branch
B Compare to an existing branch
M Merge into current branch
H Show or hide stashed changes
C Compare branches on GitHub
R Show the current pull request on GitHub

GitHub Desktop keyboard shortcuts on Windows

Site wide shortcuts

Keyboard shortcut Description
Ctrl , Go to Options
F11 Toggle full screen view
Ctrl 0 Reset zoom to default text size
Ctrl = Zoom in for larger text and graphics
Ctrl - Zoom out for smaller text and graphics
Ctrl Shift I Toggle Developer Tools

Repositories

Keyboard Shortcut Description
Ctrl N Add a new repository
Ctrl O Add a local repository
Ctrl Shift O Clone a repository from GitHub
Ctrl T Show a list of your repositories
Ctrl P Push the latest commits to GitHub
Ctrl Shift P Pull down the latest changes from GitHub
Ctrl Delete Remove an existing repository
Ctrl Shift G View the repository on GitHub
Ctrl ` Open repository in your preferred command line tool
Ctrl Shift F Show the repository in Explorer
Ctrl Shift A Open the repository in your preferred editor tool

Branches

Keyboard shortcut Description
Ctrl 1 Show all your changes before committing
Ctrl 2 Show your commit history
Ctrl B Show all your branches
Ctrl G Go to the commit summary field
Ctrl Shift N Create a new branch
Ctrl Shift R Rename the current branch
Ctrl Shift D Delete the current branch
Ctrl Shift U Update from default branch
Ctrl Shift B Compare to an existing branch
Ctrl Shift M Merge into current branch
Ctrl H Show or hide stashed changes
Ctrl Shift C Compare branches on GitHub
Ctrl R Show the current pull request on GitHub

Ask a human

Can't find what you're looking for?

Contact us