Application wide 11
| Action | Windows | Mac |
|---|---|---|
| Open Options or SettingsThe dialog is named Options on Windows and Settings on macOS. | Ctrl+, | Cmd+, |
| Toggle full screen | F11 | Ctrl+Cmd+F |
| Reset zoomReturns text to its standard size after zooming. | Ctrl+0 | Cmd+0 |
| Zoom in | Ctrl+= | Cmd+= |
| Zoom out | Ctrl+- | Cmd+- |
| Narrow the active paneThe View menu calls this Contract Active Resizable. | Ctrl+8 | Cmd+8 |
| Widen the active paneThe View menu calls this Expand Active Resizable. | Ctrl+9 | Cmd+9 |
| Toggle Developer Tools | Ctrl+Shift+I | Cmd+Option+I |
| Select all | Ctrl+A | Cmd+A |
| FindIn a text diff this brings up the search box. | Ctrl+F | Cmd+F |
| Exit or quit the appExit sits in the File menu on Windows; on macOS it is the standard Quit command. | Alt+F4 | Cmd+Q |
Repositories 16
GitHub Docs prints Remove as Ctrl+Delete and Command+Delete. The app's menu file binds it to Backspace, the key that Mac keyboards label Delete.
| Action | Windows | Mac |
|---|---|---|
| New repository | Ctrl+N | Cmd+N |
| Add local repositoryFor a repository that already exists on this computer. | Ctrl+O | Cmd+O |
| Clone repository | Ctrl+Shift+O | Cmd+Shift+O |
| Show repository list | Ctrl+T | Cmd+T |
| PushUploads your newest local commits to the remote. | Ctrl+P | Cmd+P |
| PullBrings the newest remote changes into the local repository. | Ctrl+Shift+P | Cmd+Shift+P |
| Fetch | Ctrl+Shift+T | Cmd+Shift+T |
| Remove repositoryA confirmation appears first unless that prompt has been switched off. | Ctrl+Backspace | Cmd+Backspace |
| View repository on GitHub | Ctrl+Shift+G | Cmd+Shift+G |
| Open in shellUses the terminal chosen in the app settings; the Mac binding keeps Control. | Ctrl+` | Ctrl+` |
| Show in Explorer or FinderOpens the repository folder in Explorer on Windows and in Finder on macOS. | Ctrl+Shift+F | Cmd+Shift+F |
| Open in external editorUses the editor chosen in the app settings. | Ctrl+Shift+A | Cmd+Shift+A |
| Open WithBrings up a dialog for opening the repository in an external editor. | Ctrl+Alt+Shift+A | Cmd+Option+Shift+A |
| Create issue on GitHub | Ctrl+I | Cmd+I |
| New worktree | Ctrl+Shift+W | Cmd+Shift+W |
| Show worktrees list | Ctrl+Alt+W | Cmd+Option+W |
Changes and commits 9
Two Mac bindings use Control rather than Command: opening the shell and toggling stashed changes.
| Action | Windows | Mac |
|---|---|---|
| Show ChangesSwitches to the tab that lists uncommitted work. | Ctrl+1 | Cmd+1 |
| Show HistorySwitches to the tab that lists past commits. | Ctrl+2 | Cmd+2 |
| Go to SummaryPuts the cursor in the summary box of the commit form. | Ctrl+G | Cmd+G |
| Commit changesWorks only while the cursor is in the summary or description box. | Ctrl+Enter | Cmd+Return |
| Toggle highlighted filesIncludes or excludes every highlighted file in the list of changes. | Space | Space |
| Toggle changes filterThe View menu item reads Show or Hide Changes Filter according to its state. | Ctrl+L | Cmd+L |
| Discard all changes | Ctrl+Shift+Backspace | Cmd+Shift+Backspace |
| Stash all changesA confirmation appears first unless that prompt has been switched off. | Ctrl+Shift+S | Cmd+Shift+S |
| Toggle stashed changesStays on Control on macOS, where most other rows use Command. | Ctrl+H | Ctrl+H |
Branches 13
Fetch, the worktree commands, Discard all changes, squash-and-merge, rebase, View branch on GitHub, Preview pull request, Open With, Find, Select all and the changes filter are missing from GitHub Docs' list; their keys come from the menu definition of release 3.6.6.
| Action | Windows | Mac |
|---|---|---|
| Show branches list | Ctrl+B | Cmd+B |
| New branch | Ctrl+Shift+N | Cmd+Shift+N |
| Rename branchActs on the branch that is checked out. | Ctrl+Shift+R | Cmd+Shift+R |
| Delete branch | Ctrl+Shift+D | Cmd+Shift+D |
| Update from default branchBrings the default branch's newest commits into the branch you are on. | Ctrl+Shift+U | Cmd+Shift+U |
| Compare to branch | Ctrl+Shift+B | Cmd+Shift+B |
| Merge into current branch | Ctrl+Shift+M | Cmd+Shift+M |
| Squash and merge branch | Ctrl+Shift+H | Cmd+Shift+H |
| Rebase current branch | Ctrl+Shift+E | Cmd+Shift+E |
| Compare on GitHubOpens the branch comparison in the browser. | Ctrl+Shift+C | Cmd+Shift+C |
| View branch on GitHub | Ctrl+Alt+B | Cmd+Option+B |
| Preview pull request | Ctrl+Alt+P | Cmd+Option+P |
| Create or view pull requestThe menu item reads Create Pull Request until the branch has one. | Ctrl+R | Cmd+R |
Mac only 3
| Action | Windows | Mac |
|---|---|---|
| Hide GitHub Desktop | — | Cmd+H |
| Hide other apps | — | Cmd+Option+H |
| Open context menuActs on the selected component; GitHub Docs lists it for macOS only. | — | Shift+F10 |
No row on this page matches that filter.
Notes
The commit loop
Ctrl + 1 shows the Changes tab and Ctrl + 2 the History tab. In Changes, Space toggles the highlighted files in and out of the commit, Ctrl + G jumps to the summary field and Ctrl + Enter commits once you are typing there. Ctrl + P pushes and Ctrl + Shift + P pulls — reversed from what some people expect, since P is push — while Ctrl + Shift + T only fetches. Ctrl + Shift + S stashes the working changes and Ctrl + H shows or hides the stash.
Branches
Ctrl + B opens the branch list with a filter box; typing a name and pressing Enter switches. Ctrl + Shift + N creates a branch, Ctrl + Shift + R renames the current one and Ctrl + Shift + D deletes it. Ctrl + Shift + U merges the default branch into the current one to bring it up to date, and Ctrl + Shift + M opens the merge dialog for any other branch; Ctrl + Shift + H is the squash-and-merge variant and Ctrl + Shift + E rebases the current branch. Ctrl + Shift + B compares the current branch to another without merging.
Leaving Desktop
Ctrl + ` opens the repository in your terminal, Ctrl + Shift + A in your editor, and Ctrl + Shift + F in File Explorer; the first two use the shell and editor chosen in Options. Ctrl + Shift + G opens the repository on github.com and Ctrl + R the current branch's pull request. Ctrl + T lists your repositories for switching, and Ctrl + Shift + O clones one from GitHub.
On a Mac
Most rows swap Ctrl for Cmd, but not all. Ctrl + ` and Ctrl + H keep the Control key on macOS, full screen is Ctrl + Cmd + F instead of F11, and Developer Tools moves to Cmd + Option + I. Options is called Settings there and opens with Cmd + ,.
Questions
Which key pushes and which pulls?
Ctrl + P pushes; Ctrl + Shift + P pulls (Cmd + P and Cmd + Shift + P on a Mac). Desktop shows the pending action on the toolbar button as a reminder.
How do I commit only some of my changed files?
In the Changes tab, highlight files and press Space to include or exclude them, then Ctrl + G and Ctrl + Enter to commit.
How do I open the repository in a terminal?
Ctrl + ` on Windows and on a Mac alike: the Mac shortcut uses Control, not Command. The terminal application is set in File › Options › Integrations (Settings › Integrations on a Mac).
Can I do an interactive rebase in GitHub Desktop?
Squashing and reordering are available by dragging commits in History, and Ctrl + Shift + E rebases the current branch, but for a full interactive rebase use the terminal via Ctrl + `.
Why does Ctrl + Delete not remove a repository on Windows?
GitHub Docs prints the key as Delete in both of its lists, but the app's menu binds Remove to Ctrl + Backspace. On a Mac keyboard Backspace is the key labelled Delete, so the two agree there; on a Windows keyboard they are different keys.
Sources and checks
- GitHub Docs — GitHub Desktop keyboard shortcuts (Windows and Mac versions of the article) Both columns: application wide, repositories and branches lists
- desktop/desktop on GitHub — build-default-menu.ts, release 3.6.6 (the app menu and its accelerators) Menu commands missing from the Docs article, and the Backspace binding of Remove
Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.
Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.