Go beyond the default LazyGit experience. Create custom commands, define your own keybindings, and build a git workflow tailored to your team's conventions.
LazyGit gives Git a visual interface in the terminal. Stage individual lines, resolve rebase conflicts visually, and never type git add -p again.
By the end of this 10 min guide, you'll have a working Lazygit setup and practical LazyGit workflows you can use immediately.
Install Lazygit:
brew install lazygitlazygit --version or lazygit -V after installing.Run lg in any repo. Five panels — Status, Files, Branches, Commits, Stash — with vim-style navigation. The bottom bar shows context-aware keys.
Here's a foundational configuration to start with:
# config.yml
gui:
mouseEvents: true
showIcons: true
customCommands:
- key: "C"
command: "git commit --amend --no-edit"
context: "files"With Lazygit configured, these LazyGit-specific workflows will save you time every day:
Space stage/unstage files or hunksc commit with editorEnter view diff or commit detailsp pull, P pushe edit hunks before stagingOnce you're comfortable with Lazygit basics, these advanced techniques will transform your LazyGit workflow:
{{.SelectedFile.Name}} contextS stash, Shift+S popHere are the most common Lazygit issues and how to fix them:
gui: mouseEvents: true$EDITOR is setgit rebase --abort outside LazyGitCongratulations — you now have a solid Lazygit foundation. Here's where to go next: