New GitComet Pro is out now

Keyboard Shortcuts

Keyboard Shortcuts

Reference the keyboard shortcuts available in GitComet. Find macOS, Windows, and Linux keys for navigation, staging, commits, diffs, and conflict resolution.

Reviewed against GitComet 0.3.5

Cmd and Option are macOS modifiers; Ctrl and Alt are used on Windows and Linux. Shortcuts depend on focus: text inputs, the terminal, the file editor, and conflict output keep their own editing keys. Context menus and the command palette show shortcuts for their available actions.

Press Cmd+/ on macOS or Ctrl+/ on Windows and Linux to open a searchable cheat sheet of keyboard shortcuts. The status bar has a button for it too.

App

ActionMacWindows/Linux
New windowCmd+N, Cmd+Shift+NCtrl+N, Ctrl+Shift+N
SettingsCmd+,Ctrl+,
Command paletteCmd+P, Cmd+Shift+PCtrl+P, Ctrl+Shift+P
Keyboard shortcuts cheat sheetCmd+/Ctrl+/
Search in the current viewCmd+FCtrl+F
Open repositoryCmd+OCtrl+O
Open workspaceCmd+Shift+RCtrl+Shift+R
Go to commit, branch, tag or revisionCmd+GCtrl+G
Open repository remote in a browserCmd+KCtrl+K
Open and recently closed repositoriesCmd+Shift+O, Option+Cmd+O, Cmd+Shift+ACtrl+Shift+O, Ctrl+Shift+A
Open active repository in external code editorCmd+Shift+ECtrl+Shift+E
Reveal the open file in GitComet's Files sidebarCmd+Shift+LCtrl+Shift+L
Open the file history tab for the file in the diffCtrl+HCtrl+H
Close active repo tab, or close the window if no repo tab can closeCmd+WCtrl+W
Close active windowCmd+Shift+WCtrl+Shift+W
Previous repository tabCmd+PageUp, Cmd+{, Option+Cmd+LeftCtrl+PageUp, Ctrl+Shift+Tab
Next repository tabCmd+PageDown, Cmd+}, Option+Cmd+RightCtrl+PageDown, Ctrl+Tab
Increase UI scaleCmd++, Cmd+=Ctrl++, Ctrl+=
Decrease / reset UI scaleCmd+-, Cmd+0Ctrl+-, Ctrl+0
Toggle full screenCtrl+Cmd+FF11
Minimize windowCmd+M-
Hide GitCometCmd+H-
Hide other appsOption+Cmd+H-
QuitCmd+QCtrl+Q

On Windows and Linux, Ctrl + scroll also changes the UI scale of a main window. On macOS, use the keys; scrolling with Cmd held scrolls the content.

Repository And Layout

These run the same commands as the command palette. They do not apply while the terminal, a context menu or a dialog has focus.

ActionMacWindows/Linux
Reload repositoryCmd+R, F5Ctrl+R, F5
Fetch allCmd+Shift+FCtrl+Shift+F
PullCmd+Option+Down-
PushCmd+Option+Up-
Commit changesCmd+Option+EnterCtrl+Alt+Enter
Stage all changesCmd+Option+SCtrl+Alt+S
Unstage all changesCmd+Option+UCtrl+Alt+U
Create branchCmd+Option+NCtrl+Alt+N
Checkout branchCmd+Option+CCtrl+Alt+C
Stash changesCmd+Shift+SCtrl+Shift+S
Toggle sidebarCmd+BCtrl+B
Toggle details paneCmd+Option+B, Cmd+Shift+BCtrl+Alt+B, Ctrl+Shift+B
Toggle terminalCmd+JCtrl+J, Ctrl+Shift+J
Open in external terminalCmd+Option+T-

On Windows, AltGr reaches applications as Ctrl+Alt. A chord that types a character on your keyboard layout, such as AltGr+S on a Polish layout, types that character instead of running the shortcut.

Review Navigation

These move focus between the history, the changed-file lists and the diff. See Move through files and changes.

ActionMacWindows/Linux
Next / previous paneF6, Shift+F6F6, Shift+F6
From the history list, focus the commit's filesEnterEnter
From a file list, focus the diffEnterEnter
From the diff, return to the file listEscapeEscape
From a file list, return to the historyEscapeEscape
Expand / collapse a folder or group in a file listRight, Left or EnterRight, Left or Enter
Filter the focused file listCmd+FCtrl+F
Open the menu of the selected commit or fileShift+F10Shift+F10

Move between fields and controls

Press Tab to move forward through text fields, buttons, and other controls. Press Shift+Tab to move backward. Focus wraps within the window, dialog, or popover. Tab also moves focus out of multiline fields such as the commit message.

In the embedded terminal, the shell handles Tab for completion. In the diff file editor, Documents editor, and conflict output editor, Tab inserts a tab character when the text is editable. Shift+Tab moves to the previous control. With read-only text in these editors, Tab moves to the next control.

Text Inputs

ActionMacWindows/Linux
Standard editing shortcutsCmd+A, Cmd+C, Cmd+V, Cmd+X, Cmd+Z, Cmd+Shift+ZCtrl+A, Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z, Ctrl+Shift+Z
Character paletteCtrl+Cmd+Space-
Move or selectArrows, Shift+ArrowsArrows, Shift+Arrows
Move to line start/endCmd+Left, Cmd+Right, Home, EndHome, End
Select to line start/endCmd+Shift+Left, Cmd+Shift+Right, Shift+Home, Shift+EndShift+Home, Shift+End
Move to document start/endCmd+Home, Cmd+EndCtrl+Home, Ctrl+End
Page navigationPageUp, PageDown, Shift+PageUp, Shift+PageDownPageUp, PageDown, Shift+PageUp, Shift+PageDown
Move by wordOption+Left, Option+RightCtrl+Left, Ctrl+Right
Select by wordOption+Shift+Left, Option+Shift+RightCtrl+Shift+Left, Ctrl+Shift+Right
Delete word left/rightOption+Backspace, Option+DeleteCtrl+Backspace, Ctrl+Delete
Delete to line start/endCmd+Backspace, Cmd+DeleteCtrl+Shift+Backspace, Ctrl+Shift+Delete
Compatibility aliasesCtrl+A, Ctrl+C, Ctrl+V, Ctrl+X also work in text inputs; some opposite-modifier word shortcuts are accepted too-

Commit Composer

ActionMacWindows/Linux
Commit staged changesCmd+EnterCtrl+Enter
Commit and pushCmd+Shift+EnterCtrl+Shift+Enter

Only while the commit message input has focus, and only when the button is enabled. With Amend previous commit or Skip hooks on, the same keys amend or skip hooks as the buttons show.

Commit Message Editor

These apply while editing an existing commit's message in Commit details.

ActionMacWindows/Linux
Update commitCmd+EnterCtrl+Enter
Cancel editingEscapeEscape

Update runs only when Update commit is enabled. For a commit already on the upstream, the first press asks for confirmation. See Edit a commit message.

Embedded Terminal

These apply when the embedded terminal has focus. Plain Ctrl+C, Ctrl+V and Ctrl+A are passed through to the shell rather than handled by GitComet.

ActionMacWindows/Linux
Copy terminal selectionCmd+CCtrl+Shift+C
Paste clipboard textCmd+VCtrl+Shift+V
Select all terminal bufferCmd+ACtrl+Shift+A
Scroll terminal historyShift+PageUp, Shift+PageDown, Shift+Home, Shift+EndShift+PageUp, Shift+PageDown, Shift+Home, Shift+End
Hide the terminalCmd+JCtrl+Shift+J
Keyboard shortcuts cheat sheetCmd+/Ctrl+Shift+/

On Windows and Linux, plain Ctrl+J and Ctrl+/ go to the shell while the terminal has focus.

History

ActionMacWindows/Linux
Previous / next commitUp, DownUp, Down
Previous / next pagePageUp, PageDownPageUp, PageDown
First / last commitHome, EndHome, End
Find a commitCmd+FCtrl+F
Next matchEnter, F3Enter, F3
Previous matchShift+Enter, F2Shift+Enter, F2
Close find barEscapeEscape

Row navigation applies while the history list has focus and shows the selected commit's details. With nothing selected, PageUp / PageDown select the first commit.

History search matches summaries, authors and plain-text SHA prefixes of at least four hexadecimal characters across the whole history. It supports Match Case, Whole Word and Regex. Enter and Shift+Enter apply while the find bar has focus. See Find a Commit.

Pickers

These apply while a picker's search input has focus. In standalone pickers, the command palette, and Home search, Shift+Tab and Tab also move between results. In dialogs such as Create branch and Add worktree, those keys move between fields.

ActionMacWindows/Linux
Previous / next resultUp, DownUp, Down
First / last resultCmd+Home, Cmd+EndCtrl+Home, Ctrl+End
Previous / next pagePageUp, PageDownPageUp, PageDown
Open selected resultEnterEnter
Close context menu, then pickerEscapeEscape

File History Tab

These apply while the filter input of the sidebar's file history tab has focus. Selecting a commit shows it in the main diff at once.

ActionMacWindows/Linux
Previous / next commitUp, DownUp, Down
Previous / next pagePageUp, PageDownPageUp, PageDown
First / last commitCmd+Home, Cmd+EndCtrl+Home, Ctrl+End
Clear the filterEscapeEscape

Open the tab with Ctrl+H in the diff, on macOS too; Cmd+H hides the application. The shortcut does not take over text-input editing keys. See File History.

Files Explorer

These shortcuts apply while the Files sidebar has focus. Text editors and the terminal keep their own editing keys.

ActionMacWindows/Linux
Copy / Cut / PasteCmd+C, Cmd+X, Cmd+VCtrl+C, Ctrl+X, Ctrl+V
Move previously copied files hereOption+Cmd+VCut, then Paste
DuplicateCmd+DCtrl+D
Select all visible itemsCmd+ACtrl+A
Move selectionUp, Down, Home, EndUp, Down, Home, End
Extend selectionShift + navigation keyShift + navigation key
Move focus without changing selectionCmd + navigation keyCtrl + navigation key
Expand folder / collapse or go to parentRight, LeftRight, Left
RenameF2F2
Open focused itemEnterEnter
Undo / Redo file operationCmd+Z, Cmd+Shift+ZCtrl+Z, Ctrl+Shift+Z or Ctrl+Y
Trash / Delete permanentlyDelete, Shift+DeleteDelete, Shift+Delete
Cancel inline entry, pending cut or transferEscapeEscape

Permanent deletion cannot be undone. See Manage Files and Documents.

Diff / Conflict

ActionMacWindows/Linux
Search diffCmd+FCtrl+F
Insert a newline in diff searchShift+EnterShift+Enter
Previous / next search matchF2, F3F2, F3
Close search, return to the file list, or close current diffEscapeEscape
Previous / next working-copy fileF1, F4F1, F4
Previous / next file in the list the diff came fromOption+Up, Option+DownAlt+Up, Alt+Down
Previous / next change blockUp, DownUp, Down
Scroll the diff by a pagePageUp, PageDownPageUp, PageDown
First / last change block in the fileHome, EndHome, End
Previous changeF2, Shift+F7F2, Shift+F7
Next changeF3, F7F3, F7
Inline diffOption+IAlt+I
Split diffOption+SAlt+S
Toggle visible whitespace charactersOption+WAlt+W
Enter or leave the file editorOption+EAlt+E
Save while the file editor is openCmd+SCtrl+S
Stage the current file (unstaged diff)Cmd+SCtrl+S
Unstage the current file (staged diff)Cmd+UCtrl+U
Discard the current file, after confirmation (unstaged diff)Cmd+UCtrl+U
Stage/unstage current worktree file and advanceSpaceSpace
Stage the selected lines or outlined change blockSS
Unstage (staged diff) or discard (unstaged diff) the selected lines or outlined change blockUU
Copy the file's path (working-tree diff)Cmd+Shift+CCtrl+Shift+C
Open the file in the external code editorCmd+ECtrl+E
Toggle blameOption+BAlt+B
Select all / copy selected diff textCmd+A, Cmd+CCtrl+A, Ctrl+C
Three-way conflict choicesA base, B ours, C theirs, D bothA base, B ours, C theirs, D both
Two-way conflict choicesA local, B remote, C bothA local, B remote, C both
Pick the first, second or third source for the active conflictCmd+1, Cmd+2, Cmd+3Ctrl+1, Ctrl+2, Ctrl+3
Pick the first, second or third source for every conflictCmd+Shift+1, Cmd+Shift+2, Cmd+Shift+3Ctrl+Shift+1, Ctrl+Shift+2, Ctrl+Shift+3
Make the active conflict unresolved againUU
Previous / next unresolved conflictShift+F2, Shift+F3Shift+F2, Shift+F3
First / last delta (conflict resolver)Cmd+Home, Cmd+EndCtrl+Home, Ctrl+End
Align selected lines manually (conflict resolver)Cmd+YCtrl+Y
Clear all manual alignmentsCmd+Shift+YCtrl+Shift+Y

Search supports Match Case, Whole Word, and Regex. While search is open, F2 / F3 visit matches instead of changes. In a rendered Markdown preview, search covers the rendered text and opens collapsed sections that contain the current match.

In a focused diff, Up / Down outline one change block at a time and continue into the previous or next file past the first or last block. Option+Up / Alt+Up and Option+Down / Alt+Down skip straight to the adjacent file. In commit, comparison, worktree and status lists, Up / Down, PageUp / PageDown and Home / End select files and stop at the first or last file.

S and U act on the selected lines, or on the outlined change block when nothing is selected. U in an unstaged diff discards those lines from the working tree without asking. The external editor shortcut is available once an editor is configured in Settings.

The numbered picks follow the resolver's columns: base, ours and theirs in a three-way merge; local, remote and both in a two-way merge. They also work while the resolved-output editor has focus.

While the file editor is open, Cmd+S / Ctrl+S saves wherever focus is; outside the editor, that shortcut stages the current file. Plain conflict-choice letters do not select inputs while you are typing in an editor or search field. Shift+F2 / Shift+F3 still navigate unresolved conflicts while the resolved-output editor has focus. First/last delta shortcuts remain cursor-movement keys in that editor.

Inline/split toggles and Space staging apply to raw file diffs. Return from rendered previews to source mode to use raw diff controls.

In a focused staged or unstaged file list, Space also acts on its single selected file and advances to the next one. Focus stays in the list, so another Space acts on the next file. Up / Down, PageUp / PageDown and Home / End step through the list's files and open each one in the diff. In those lists, Cmd+A / Ctrl+A selects every file, Cmd+S / Ctrl+S stages the selection, and Cmd+U / Ctrl+U unstages it in the staged list or discards it, after confirmation, in an unstaged list.

Image And Diagram Previews

These apply when an image has focus, including image diffs and image conflict previews.

ActionMacWindows/Linux
Zoom in / out+, -+, -
Fit0 or double-click0 or double-click
Actual size (100%)11
Zoom around the pointerCmd + scrollCtrl + scroll
PanDrag or scrollDrag or scroll

Over a Mermaid diagram, Cmd + scroll / Ctrl + scroll zooms the diagram and double-click returns it to 100%. Elsewhere on Windows and Linux, Ctrl + scroll changes the UI scale; on macOS, Cmd + scroll does not. See Preview images and Markdown.

Context Menus

ActionAll platforms
Move selectionUp, Down, Tab, Shift+Tab
Activate selection or first enabled itemEnter
Close menuEscape
Activate a labeled entryThe single-letter shortcut shown beside it

In history menus, Right, Enter or Space opens a branch/tag group; Left returns to the parent menu.

Focused Diff Window

ActionMacWindows/Linux
CloseCmd+W, Ctrl+W, Escape, QCtrl+W, Escape, Q
Previous changeF2, Shift+F7F2, Shift+F7
Next changeF3, F7F3, F7

Documentation

Search

↑↓ move ⏎ open Esc close

Browse the docs or start typing to filter results.