eza: How to Show Git Status

Updated

Learn how to view per-file and multi-repo Git status directly inside eza listings.

eza: How to Show Git Status

Before we start, make sure you have eza compiled with Git support. If you installed it with Homebrew (brew install eza), run eza --version and confirm you see [+git].

Show Per-File Git Status

Navigate to your Git repository in Terminal and combine -l with --git:

eza -l --git

The --git flag adds a two-character status column showing staged changes on the left and unstaged changes on the right. You'll see - for unmodified, M for modified, N for new or untracked, D for deleted, R for renamed, T for type-change, I for ignored via .gitignore, and U for conflicted. For example, M- means staged and modified, -M means modified locally, and -N is a new untracked file.

Useful Git Variations

Add hidden files and column headers with eza -lah --git, inspect nested folders with eza -l --tree --git, or hide anything matched by .gitignore:

eza -l --git --git-ignore
undefined

If you keep several repositories inside one parent folder, run eza -lh --git-repos from that parent directory to see every repo's branch and clean or modified status at a glance.