Frequently Asked Questions

Is lazygit a replacement for the git CLI? +
lazygit is a UI on top of git, not a replacement. It runs actual git commands under the hood. You can see every git command it runs by pressing @ to open the command log. You can still use git in the terminal alongside lazygit.
How do I configure lazygit? +
lazygit uses a YAML config file. On Linux/macOS it lives at ~/.config/lazygit/config.yml. On Windows it is at %APPDATA%\lazygit\config.yml. You can open it from within lazygit by pressing o (lowercase) in the status panel.
Can I use delta or diff-so-fancy as my pager? +
Yes. Add a pager configuration to your config.yml. For delta: set git.paging.colorArg to always, pager to delta --dark --paging=never. See the official Custom Pagers docs for details.
How do I undo an action? +
Press ctrl+z to undo the last action. lazygit uses git reflog internally to restore previous states. Press ctrl+y to redo.
What do the commit colors mean? +
Yellow = HEAD commit. Green = local commits not pushed yet. Blue = commits that have been pushed. Red = commits that have been rebased/rewritten on the remote.

More questions?

Check the GitHub Discussions or open an issue on the official repository.