键盘快捷键

|  | 提交
Ctrl + Return | : | 提交已缓存变更
Ctrl + Shift + Return | : | Prepare commit message hook
Ctrl + S | : | 缓存所选项目
Ctrl + Shift + S | : | Stage / unstage all files
Alt + A | : | 缓存已更改项目
Alt + U | : | 缓存未追踪项目
Ctrl + U / Alt + Shift + R | : | 还原缓存改动
Ctrl + Shift + U | : | Launch an external editor to edit the selected lines, or the diff hunk beneath the text cursor when nothing is selected, and then revert unstaged changes using the edited diff
Ctrl + Z | : | 撤销未缓存变更
Ctrl + Shift + M | : | Merge branches
Alt + M | : | 修正前一次提交
Ctrl + Shift + C | : | Cherry pick

|  | 操作
Ctrl + B | : | 建立新分支
Alt + B | : | 取出分支內容
Ctrl + T | : | Find files
Alt + G | : | 搜索
Alt + D | : | 显示内容差异
Alt + Shift + E | : | 导出差异
Alt + Shift + S | : | 缓存
Ctrl + Enter | : | Apply Stash
Ctrl + Backspace | : | Pop Stash
Ctrl + Shift + Backspace | : | Drop Stash
Ctrl + Backspace | : | Delete untracked files
Alt + Shift + F | : | Toggle paths filter
Ctrl + R | : | 重新整理
? | : | 显示键盘快捷键列表

|  | 编辑
Enter / Ctrl + E | : | 启动文本编辑器
空白鍵 | : | 用默认程序打开
Shift + 空白鍵 | : | 打开上级目录
Ctrl + Alt + C | : | Copy Commit ID
Ctrl + Shift + E | : | 查看 / 编辑最近修改的文件
Ctrl + # | : | 聚焦于工具
Ctrl + Shift + # | : | 显示/隐藏工具
Ctrl + Space | : | Display autocomplete options

|  | 差异查看器
S | : | 缓存所选项目，未选择项目时与H作用相同
Ctrl + Shift + S | : | Launch an external editor to edit the selected lines, or the diff hunk benath the text cursor when nothing is selected, and then stage the edited diff
Ctrl + D | : | 使用「git difftool」命令查看内容差异
Ctrl + F | : | Search diff for matching text
Ctrl + G | : | Search diff for the next text match
Ctrl + Shift + G | : | Search diff for the previous text match
Alt + Shift + C | : | Copy Diff to clipboard (strips diff +/- prefixes)
Ctrl + Shift + D | : | View directory diff using `git difftool --dir-diff`
Shift | : | Hold Shift to select text when moving the cursor with H, J, K, L and Arrow keys
Space / Shift + Space | : | Page Down / Page Up
0 (Zero) | : | Move cursor to the start of the line
$ (Shift + 4) | : | Move cursor to the end of the line
G G | : | Move cursor to the start of the diff
Shift + G | : | Move cursor to the end of the diff

|  | 「浏览器」窗口操作
Ctrl + Shift + H | : | 查看变更历史
Ctrl + Shift + D | : | 与之前版本比较差异

|  | 导航键
H | : | 左移／折叠
J / Alt + J | : | 下移
K / Alt + K | : | 上移
L | : | 右移／展开
Ctrl + J | : | Focus the Diff Editor
Ctrl + K | : | Focus the Status tool
Ctrl + L | : | 聚焦在 DAG 输入框