# Lazygit

> lazygit terminal UI for git. Use for git operations. Use when this capability is needed.

- Skill: `tomevault-io/lazygit` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/lazygit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/lazygit/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/lazygit

---


# Lazygit

Lazygit is a TUI for Git. It makes complex operations (interactive rebase, partial staging) accessible via intuitive keyboard shortcuts.

## When to Use

- **Staging**: Staging individual lines/hunks (`Space`).
- **Rebasing**: Drag-and-drop commits to reorder them (via keybindings).
- **Conflict Resolution**: A clear 3-way view to pick "Ours" or "Theirs".

## Core Concepts

### Panels

Status, Files, Local Branches, Commits, Stash. Navigate with `h/l` or arrows.

### Keybindings

- `c`: Commit
- `P`: Push
- `p`: Pull
- `s`: Stage

### Custom Commands

Define custom actions in `config.yml` (e.g. "Create PR").

## Best Practices (2025)

**Do**:

- **Interactive Rebase**: Press `i` on a past commit to fix it up.
- **Filter**: Press `/` to filter branches or files.
- **Bisect**: Use the built-in bisect wizard to find bugs.

**Don't**:

- **Don't fear the CLI**: Lazygit is a wrapper. Understanding underlying git concepts is still needed.

## References

- [Lazygit GitHub](https://github.com/jesseduffield/lazygit)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/g1joshi) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

