Skip to content

Latest commit

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

⚡️ zgit — Git, Visualized.

A beautifully styled, Tokyo Night-themed CLI wrapper for Git that turns raw output into structured visual panels.

MIT Licensenpm versionNode.js version


 ░██ ░██ ░██ ░█████████ ░████████ ░██░████████ ░███ ░██ ░██ ░██ ░██ ░███ ░██ ░██ ░██ ░██ ░███ ░██ ░███ ░██ ░██ ░█████████ ░█████░██ ░██ ░████ ░██ ░███████

Git, without the grey blur.

zgit wraps standard git commands and presents them in high-contrast Tokyo Night widgets. Zero configuration, zero context switching. Just your workflow, beautiful by default.

demo


✨ Features

1. Unified Status Panels (zgit status)

Get a grouped summary of your staging and working tree state with color-coded headings and status indicators:

╭─ Status ─────────────────────────────────╮
│ ℹ Branch: main │
│ ℹ Tracking: origin/main │
│ │
│ MODIFIED (1) │
│ 📝 src/banner.js │
╰──────────────────────────────────────────╯

2. Streamlined Log Trees (zgit log & zgit log --graph)

Read history with custom bullet symbols, contributor flags, and formatted relative dates. Uses a right-borderless open-box style to prevent wrapping on thin terminals:

╭─ Logs ────────────────────────────────────────────────────────────────────────────────
│ ● f36a1ef feat: premium ui refresh for zgit log, help, and readme (by britz) 6/6/2026
│ ● 5acdc63 feat: premium zgit log output (by britz) 6/6/2026
│ ● ef48476 docs: redesign readme as premium landing page (by britz) 6/6/2026
╰───────────────────────────────────────────────────────────────────────────────────────

3. Open-Box Diff Layout (zgit diff)

No more copying vertical borders () when extracting code from diff outputs. Line additions are colored soft green, deletions soft red, and file indicators cyan.

4. Rich Branch Summaries (zgit branch)

Highlights your current branch in bold green and lists other branches alongside their latest short commit hashes and summaries:

╭─ Branches ────────────────────────────────────────────────────────────────────────────────╮
│ Current: main │
│ │
│ ● main [f36a1ef] (feat: premium ui refresh for zgit log, help, and readme) │
│ remotes/origin/main [f36a1ef] (feat: premium ui refresh for zgit log, help, and readme) │
╰───────────────────────────────────────────────────────────────────────────────────────────╯

🚀 Install & Quick Start

Global Installation

npm install -g @12britz/zgit

Run without installing (On-Demand)

npx @12britz/zgit st

Typical Workflow Commands

zgit status # Beautiful working tree status
zgit branch # Rich branch list with commit logs
zgit diff [file] # Colored code diffs
zgit log --count 5 # History log list
zgit add .# Stage files in a green status frame
zgit commit -m "Your msg"# Record commit
zgit push origin # Push commits to remote

🛠 Command Reference

CommandShortcutDescriptionOutput Style
init [path]-Create new git repositoryFull Box
clone <url> [path]-Clone a remote repoFull Box
statusstCheck working tree stateFull Box
log-Read commit history listOpen Box
diff [file]-Review file changesOpen Box
add [path]-Stage files to indexesFull Box
commit-Record changesFull Box
branch-Manage local/remote branchesFull Box
switch <name>swChange working branchesFull Box
stash-Save or pop changesOpen Box
reset [ref]-Reset changes (mixed/hard/soft)Full Box
merge <branch>-Join work branchesFull Box
pull / push-Sync changes with originFull Box
remote-Manage git originsOpen Box
tag [name]-Mark version releasesFull Box

🎨 Theme Details

zgit uses custom TrueColor escape sequences mapped to the Tokyo Night theme:

  • Background Accent Panels: #7aa2f7 (Tokyo Night Blue)
  • Success/Staged Action Panels: #9ece6a (Soft Green)
  • Danger/Delete Action Panels: #f7768e (Coral Red)
  • Caution/Reset Action Panels: #e0af68 (Warm Yellow)
  • Graph/Conflict Action Panels: #bb9af3 (Warm Purple)

About

A beautifully styled, Tokyo Night-themed CLI wrapper for Git that turns raw output into structured visual panels.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages