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 / Alt + Shift + R
</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">Alt + 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">Alt + 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>
245 <td class=
"shortcut">Ctrl + Space
</td>
247 <td>Display autocomplete options
</td>
250 <td class=
"shortcut">Ctrl + Shift + #
</td>
252 <td>Show and hide tools
<br>
253 # is
1 for commit,
2 for status,
3 for diff, etc.
</td>
258 <table class=
"center">
260 <td width=
"35%"> </td>
262 <td class=
"title">Remotes
</td>
265 <td class=
"shortcut">Ctrl + P
</td>
267 <td>Launch the Push dialog
</td>
270 <td class=
"shortcut">Ctrl + Shift + P
</td>
272 <td>Launch the Pull dialog
</td>
277 <table class=
"center">
279 <td width=
"35%"> </td>
281 <td class=
"title">Diff
</td>
284 <td class=
"shortcut">S
</td>
286 <td>Stage or unstage the selected lines, or the diff hunk beneath the text cursor
287 when nothing is selected
</td>
290 <td class=
"shortcut">Ctrl + Shift + S
</td>
292 <td>Launch an external editor to edit the selected lines, or the diff hunk beneath the
293 text cursor when nothing is selected, and then stage or unstage the edited diff
</td>
296 <td class=
"shortcut">Ctrl + D
</td>
298 <td>View diff using `git difftool`
</td>
301 <td class=
"shortcut">Ctrl + F
</td>
303 <td>Search diff for matching text
</td>
306 <td class=
"shortcut">Ctrl + G
</td>
308 <td>Search diff for the next text match
</td>
311 <td class=
"shortcut">Ctrl + Shift + G
</td>
313 <td>Search diff for the previous text match
</td>
316 <td class=
"shortcut">Alt + Shift + C
</td>
318 <td>Copy Diff to clipboard (strips diff +/- prefixes)
</td>
321 <td class=
"shortcut">Ctrl + Shift + D
</td>
323 <td>View directory diff using `git difftool --dir-diff`
</td>
326 <td class=
"shortcut">Shift
</td>
328 <td>Hold Shift to select text when moving the cursor with H, J, K, L
332 <td class=
"shortcut">Space / Shift + Space
</td>
334 <td>Page Down / Page Up
</td>
337 <td class=
"shortcut">0 (Zero)
</td>
339 <td>Move cursor to the start of the line
</td>
342 <td class=
"shortcut">$ (Shift +
4)
</td>
344 <td>Move cursor to the end of the line
</td>
347 <td class=
"shortcut">G G
</td>
349 <td>Move cursor to the start of the diff
</td>
352 <td class=
"shortcut">Shift + G
</td>
354 <td>Move cursor to the end of the diff
</td>
358 <!-- Browser actions -->
359 <table class=
"center">
361 <td width=
"35%"> </td>
363 <td class=
"title">Browser actions
</td>
366 <td class=
"shortcut">Ctrl + Shift + H
</td>
368 <td>View history
</td>
371 <td class=
"shortcut">Ctrl + Shift + D
</td>
373 <td>View diff against predecessor
</td>
377 <!-- Tree navigation -->
378 <table class=
"center">
380 <td width=
"35%"> </td>
382 <td class=
"title">Navigation
</td>
385 <td class=
"shortcut">H
</td>
387 <td>Move left/collapse
</td>
390 <td class=
"shortcut">J / Alt + J
</td>
395 <td class=
"shortcut">K / Alt + K
</td>
400 <td class=
"shortcut">L
</td>
402 <td>Move right/expand
</td>
405 <td class=
"shortcut">Ctrl + J
</td>
407 <td>Focus the Diff Editor
</td>
410 <td class=
"shortcut">Ctrl + K
</td>
412 <td>Focus the Status tool
</td>
415 <td class=
"shortcut">Ctrl + L
</td>
417 <td>Focus the Commit summary, Grep query, DAG query, ...
</td>