Global Shortcuts
common
p
pullP
pushq
quitz
undo<c+z>
redo/
search (regex match)
less common
shift+plus/minus
next/previous layout@
toggle command log panel:
execute custom command (shell commands)R
refresh git stauts (git stauts && git brach &&)<c+r>
open recent git repositories
Panel ① - File Staging Area
common
<space>
stage file selectedo
open file selecteda
stage all filesd
discard changes of file selectedD
advanced discard change optionsDx
nuke working tree = git reset (git reset --hard HEAD
) + remove unwanted files from your working directory (git clean -fd
)
less common
S
view stash optionsSs
stash staged files onlySa
stash all filesy
open yank/copy menur
refresh file<c+o>
copy relative url path to clipboard
Panel ② - Branches and Origins
common
<space>
checkout branch selectedn
create new branch (from current selected branch)
less common
o
open the current branch’s github pagec
checkout by branch nameM
merge selected branch into currently checked out branch
Panel ③ - Commits and Reflog
common
r
reword commit (you will have to force push after this)t
create a new commit that undoes the changes introduced by a specific commit without modifying the commit history
reset
g
show reset optionsgm
mixed reset: keep unstaged and staged changes on current working directorygs
soft reset: keep only staged changes (remove unstaged changes)gh
hard reset: (recommended but be careful) keep none of the changes on current working directory, make current files exactly like the resetting commit
fixup
f
quick fixup current commit with the previsou commitF
show fixup optionsFf
fixup last commit (add a new commit with the commit message “!fixup msg-of-last-commit”)S
show apply all fixup commit optionsSa
show apply all fixup commit above current commit
less common
o
open the current commit’s github pager
reword the selected commitA
ammend last commit (add current staged changes to last commit, without any commit message change)d
(do not use !) drop the selected commit (will not reset/revert the changes !!!!)
Panel ④ - Stash Area
common
g
(recommended) apply the stash entry to your working directory, and remove the stash entry.<space>
(do not use) apply the stash entry to your working directory, but not remove the stash entry.
less common
r
rename stash entryd
drop (delete the stash entiy without recovery)