Skip to content

Commit

Permalink
add keybindings doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Aug 6, 2018
1 parent caea649 commit afc3d4a
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions docs/Keybindings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Keybindings:

## Global:

← → ↑ ↓: navigate
PgUp/PgDn: scroll diff panel
q: quit

## Files Panel:

space: toggle staged
c: commit changes
shift+S: stash files
o: open (osx only)
s: open in sublime (requires 'code' command)
v: open in vscode (requires 'subl' command)
i: add to .gitignore
d: delete if untracked checkout if tracked (aka go away)
shift+R: refresh files

## Branches Panel:

space: checkout branch
f: force checkout branch
m: merge into currently checked out branch
c: checkout by name
n: new branch

## Commits Panel:

s: squash down (only available for topmost commit)
r: rename commit
g: reset to this commit

## Stash Panel:

space: apply
k: pop
d: drop

## Popup Panel:

esc: close/cancel
enter: confirm

## Resolving Merge Conflicts (Diff Panel):

← →: navigate conflicts
↑ ↓: select hunk
space: pick hunk
b: pick both hunks
z: undo (only available while still inside diff panel)

0 comments on commit afc3d4a

Please sign in to comment.