lazygit — git, visually#
Open with lg inside any git repo. Everything is keyboard-driven.
Panels (left side)#
Jump with 1–5 (or Tab / arrows to move focus): 1 Status · 2 Files · 3 Branches · 4 Commits · 5 Stash
Files panel (stage & commit)#
- Space — stage / unstage the file (or hunk, if a file is expanded)
- Enter — open file to stage individual hunks/lines (Space there too)
a— stage everythingc— commit (Copens your $EDITOR for the message)A— amend last commit ·d— discard changes (careful)
Branches panel#
- Space — checkout ·
n— new branch ·d— delete M— merge into current ·r— rebase onto ·f— fast-forward
Commits panel#
g? navigate; Enter — view files in that commitppull ·Ppush ·rreword · interactive rebase viae
Always available#
?— context help (what every key does right here)x— menu of all actions ·q— quit ·/— filter