GitHub Desktop keyboard shortcuts for Windows and Mac

GitHub Desktop's default shortcuts for Windows and macOS, taken from the GitHub Docs article and, for menu commands that article leaves out, from the menu definition of release 3.6.6. Standard text-editing keys such as copy and paste are not listed. Nearly every Windows chord keeps its letter and swaps Ctrl for Cmd on a Mac, but Ctrl + ` and Ctrl + H stay on Control there. Push is Ctrl + P; pull adds Shift.

52 shortcuts in 5 sections. Checked row by row against GitHub Docs on . Edited by Jay.

Application wide 11

ActionWindowsMac
Open Options or SettingsThe dialog is named Options on Windows and Settings on macOS.Ctrl+,Cmd+,
Toggle full screenF11Ctrl+Cmd+F
Reset zoomReturns text to its standard size after zooming.Ctrl+0Cmd+0
Zoom inCtrl+=Cmd+=
Zoom outCtrl+-Cmd+-
Narrow the active paneThe View menu calls this Contract Active Resizable.Ctrl+8Cmd+8
Widen the active paneThe View menu calls this Expand Active Resizable.Ctrl+9Cmd+9
Toggle Developer ToolsCtrl+Shift+ICmd+Option+I
Select allCtrl+ACmd+A
FindIn a text diff this brings up the search box.Ctrl+FCmd+F
Exit or quit the appExit sits in the File menu on Windows; on macOS it is the standard Quit command.Alt+F4Cmd+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.

ActionWindowsMac
New repositoryCtrl+NCmd+N
Add local repositoryFor a repository that already exists on this computer.Ctrl+OCmd+O
Clone repositoryCtrl+Shift+OCmd+Shift+O
Show repository listCtrl+TCmd+T
PushUploads your newest local commits to the remote.Ctrl+PCmd+P
PullBrings the newest remote changes into the local repository.Ctrl+Shift+PCmd+Shift+P
FetchCtrl+Shift+TCmd+Shift+T
Remove repositoryA confirmation appears first unless that prompt has been switched off.Ctrl+BackspaceCmd+Backspace
View repository on GitHubCtrl+Shift+GCmd+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+FCmd+Shift+F
Open in external editorUses the editor chosen in the app settings.Ctrl+Shift+ACmd+Shift+A
Open WithBrings up a dialog for opening the repository in an external editor.Ctrl+Alt+Shift+ACmd+Option+Shift+A
Create issue on GitHubCtrl+ICmd+I
New worktreeCtrl+Shift+WCmd+Shift+W
Show worktrees listCtrl+Alt+WCmd+Option+W

Changes and commits 9

Two Mac bindings use Control rather than Command: opening the shell and toggling stashed changes.

ActionWindowsMac
Show ChangesSwitches to the tab that lists uncommitted work.Ctrl+1Cmd+1
Show HistorySwitches to the tab that lists past commits.Ctrl+2Cmd+2
Go to SummaryPuts the cursor in the summary box of the commit form.Ctrl+GCmd+G
Commit changesWorks only while the cursor is in the summary or description box.Ctrl+EnterCmd+Return
Toggle highlighted filesIncludes or excludes every highlighted file in the list of changes.SpaceSpace
Toggle changes filterThe View menu item reads Show or Hide Changes Filter according to its state.Ctrl+LCmd+L
Discard all changesCtrl+Shift+BackspaceCmd+Shift+Backspace
Stash all changesA confirmation appears first unless that prompt has been switched off.Ctrl+Shift+SCmd+Shift+S
Toggle stashed changesStays on Control on macOS, where most other rows use Command.Ctrl+HCtrl+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.

ActionWindowsMac
Show branches listCtrl+BCmd+B
New branchCtrl+Shift+NCmd+Shift+N
Rename branchActs on the branch that is checked out.Ctrl+Shift+RCmd+Shift+R
Delete branchCtrl+Shift+DCmd+Shift+D
Update from default branchBrings the default branch's newest commits into the branch you are on.Ctrl+Shift+UCmd+Shift+U
Compare to branchCtrl+Shift+BCmd+Shift+B
Merge into current branchCtrl+Shift+MCmd+Shift+M
Squash and merge branchCtrl+Shift+HCmd+Shift+H
Rebase current branchCtrl+Shift+ECmd+Shift+E
Compare on GitHubOpens the branch comparison in the browser.Ctrl+Shift+CCmd+Shift+C
View branch on GitHubCtrl+Alt+BCmd+Option+B
Preview pull requestCtrl+Alt+PCmd+Option+P
Create or view pull requestThe menu item reads Create Pull Request until the branch has one.Ctrl+RCmd+R

Mac only 3

ActionWindowsMac
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

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

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.