Lazygit Shortcuts
Lazygit is a simple terminal UI for git commands. It can greatly speed up your git workflow. Here are some common shortcuts:
General
x: Checkout branchc: CommitP: Pushp: Pulll: Logs: Stasha: Add/Remove patch (for staging specific lines)z: Undo (revert previous action)<space>: Toggle staged/unstaged<enter>: View files/branches/stashes
Files Panel
s: Stage fileu: Unstage filed: Discard changesg: Revert changesa: Stage allC: Commit changes
Branches Panel
n: New branchM: Merge into current branchR: Rebase onto current branchD: Delete branch
Stash Panel
a: Apply stashg: Pop stash (apply and drop)d: Drop stashc: Clear all stashes
These are just a few common shortcuts. Lazygit has many more features that can be explored by pressing ? within the application to view the keybinding menu.