5 <style type=
"text/css">
7 font-family: Helvetica
, Ubuntu
, sans
;
8 background-color: #303030;
28 font-family: Monaco
, "Ubuntu Mono", monospace
;
42 <span class=
"title">Keyboard shortcuts
</span>
45 <!-- Preparing Commits -->
46 <table class=
"center">
48 <td width=
"35%"> </td>
50 <td class=
"title">Commit
</td>
53 <td class=
"shortcut">Ctrl + Return
</td>
55 <td>Commit staged changes
</td>
58 <td class=
"shortcut">Ctrl + Shift + Return
</td>
60 <td>Prepare commit message hook
</td>
63 <td class=
"shortcut">Ctrl + S
</td>
65 <td>Stage / unstage selected files
</td>
68 <td class=
"shortcut">Ctrl + Shift + S
</td>
70 <td>Stage / unstage all files
</td>
73 <td class=
"shortcut">Alt + A
</td>
75 <td>Stage modified files
</td>
78 <td class=
"shortcut">Alt + U
</td>
80 <td>Stage untracked files
</td>
83 <td class=
"shortcut">Ctrl + U
</td>
85 <td>Revert the selected lines, or the diff hunk beneath the text cursor when nothing
86 is selected, from the worktree
</td>
89 <td class=
"shortcut">Ctrl + Shift + U
</td>
91 <td>Launch an external editor to edit the selected lines, or the diff hunk beneath
92 the text cursor when nothing is selected, and then revert unstaged changes
93 using the edited diff
</td>
96 <td class=
"shortcut">Ctrl + Z
</td>
98 <td>Revert uncommitted changes
</td>
101 <td class=
"shortcut">Ctrl + Shift + M
</td>
103 <td>Merge branches
</td>
106 <td class=
"shortcut">Ctrl + m
</td>
108 <td>Amend last commit
</td>
111 <td class=
"shortcut">Ctrl + Shift + C
</td>
118 <table class=
"center">
120 <td width=
"35%"> </td>
122 <td class=
"title">Actions
</td>
125 <td class=
"shortcut">Ctrl + B
</td>
127 <td>Create branch
</td>
130 <td class=
"shortcut">Alt + B
</td>
132 <td>Checkout branch
</td>
135 <td class=
"shortcut">Ctrl + T
</td>
140 <td class=
"shortcut">Ctrl + G
</td>
145 <td class=
"shortcut">Alt + D
</td>
147 <td>Show diffstat
</td>
150 <td class=
"shortcut">Alt + E
</td>
152 <td>Export patches
</td>
155 <td class=
"shortcut">Alt + Shift + S
</td>
160 <td class=
"shortcut">Ctrl + Enter
</td>
165 <td class=
"shortcut">Ctrl + Backspace
</td>
170 <td class=
"shortcut">Ctrl + Shift + Backspace
</td>
175 <td class=
"shortcut">Ctrl + Backspace
</td>
177 <td>Delete untracked files
</td>
180 <td class=
"shortcut">Ctrl + Shift + F
</td>
182 <td>Toggle paths filter
</td>
185 <td class=
"shortcut">Alt + R
</td>
187 <td>Start/continue interactive rebase
</td>
190 <td class=
"shortcut">Ctrl + R
</td>
195 <td class=
"shortcut">?
</td>
197 <td>Keyboard shortcuts
</td>
202 <table class=
"center">
204 <td width=
"35%"> </td>
206 <td class=
"title">Editing
</td>
209 <td class=
"shortcut">Enter / Ctrl + E
</td>
211 <td>Launch editor
</td>
214 <td class=
"shortcut">Space
</td>
216 <td>Open using default application
</td>
219 <td class=
"shortcut">Shift + Space
</td>
221 <td>Open parent directory
</td>
224 <td class=
"shortcut">Ctrl + Alt + C
</td>
226 <td>Copy Commit ID
</td>
229 <td class=
"shortcut">Ctrl + Shift + E
</td>
231 <td>View / edit recently modified files
</td>
234 <td class=
"shortcut">Ctrl + #
</td>
239 <td class=
"shortcut">Ctrl + Shift + #
</td>
241 <td>Show and hide tools
<br>
242 # is
1 for commit,
2 for status,
3 for diff, etc.
</td>
247 <table class=
"center">
249 <td width=
"35%"> </td>
251 <td class=
"title">Remotes
</td>
254 <td class=
"shortcut">Ctrl + P
</td>
256 <td>Launch the Push dialog
</td>
259 <td class=
"shortcut">Ctrl + Shift + P
</td>
261 <td>Launch the Pull dialog
</td>
266 <table class=
"center">
268 <td width=
"35%"> </td>
270 <td class=
"title">Diff
</td>
273 <td class=
"shortcut">S
</td>
275 <td>Stage or unstage the selected lines, or the diff hunk beneath the text cursor
276 when nothing is selected
</td>
279 <td class=
"shortcut">Ctrl + Shift + S
</td>
281 <td>Launch an external editor to edit the selected lines, or the diff hunk beneath the
282 text cursor when nothing is selected, and then stage or unstage the edited diff
</td>
285 <td class=
"shortcut">Ctrl + D
</td>
287 <td>View diff using `git difftool`
</td>
290 <td class=
"shortcut">Alt + Shift + C
</td>
292 <td>Copy Diff to clipboard (strips diff +/- prefixes)
</td>
295 <td class=
"shortcut">Ctrl + Shift + D
</td>
297 <td>View directory diff using `git difftool --dir-diff`
</td>
300 <td class=
"shortcut">Shift
</td>
302 <td>Hold Shift to select text when moving the cursor with H, J, K, L
306 <td class=
"shortcut">Space / Shift + Space
</td>
308 <td>Page Down / Page Up
</td>
311 <td class=
"shortcut">0 (Zero)
</td>
313 <td>Move cursor to the start of the line
</td>
316 <td class=
"shortcut">$ (Shift +
4)
</td>
318 <td>Move cursor to the end of the line
</td>
321 <td class=
"shortcut">G G
</td>
323 <td>Move cursor to the start of the diff
</td>
326 <td class=
"shortcut">Shift + G
</td>
328 <td>Move cursor to the end of the diff
</td>
332 <!-- Browser actions -->
333 <table class=
"center">
335 <td width=
"35%"> </td>
337 <td class=
"title">Browser actions
</td>
340 <td class=
"shortcut">Ctrl + Shift + H
</td>
342 <td>View history
</td>
345 <td class=
"shortcut">Ctrl + Shift + D
</td>
347 <td>View diff against predecessor
</td>
351 <!-- Tree navigation -->
352 <table class=
"center">
354 <td width=
"35%"> </td>
356 <td class=
"title">Navigation
</td>
359 <td class=
"shortcut">H
</td>
361 <td>Move left/collapse
</td>
364 <td class=
"shortcut">J / Alt + J
</td>
369 <td class=
"shortcut">K / Alt + K
</td>
374 <td class=
"shortcut">L
</td>
376 <td>Move right/expand
</td>
379 <td class=
"shortcut">Ctrl + J
</td>
381 <td>Focus the Diff Editor
</td>
384 <td class=
"shortcut">Ctrl + K
</td>
386 <td>Focus the Status tool
</td>
389 <td class=
"shortcut">Ctrl + L
</td>
391 <td>Focus the Commit summary, Grep query, DAG query, ...
</td>