跳到正文
Hacker News· yairchu·· 10 天前AI 评分22

Glog:一款只读 Git TUI,沿用熟悉的 pager 快捷键

Show HN: Glog – A read-only Git TUI with familiar pager keys

AI 导读

Glog 是一款只读的 Git 终端 UI,覆盖 log、show、diff、status、blame、stash list 和 reflog,支持 j/k、/、n、q 等 pager 快捷键。

正文 · 原文

A read-only terminal UI for git log • show • diff • status • blame • stash list • reflog

Example Log view in watch mode. Open Working tree for live status.

Features

  • Press Enter to open a commit from the log.
  • Keep your muscle memory with familiar pager keys: j/k, /, n, and q.
  • Toggle file stats and expanded patches with s.
  • Get syntax-highlighted diffs with delta, used automatically when installed.
  • Spot agent coauthors with badges: Codex and Claude Code.
  • Lockfiles fold automatically to keep source changes in view; expand them when needed.
  • View image files in diffs in supported terminals (Kitty and Ghostty, cmux and more).
  • Highlight and filter conventional commit types.
  • Explore line history with glog blame FILE: inspect commits, step back before a change, and follow renames.
  • Browse ref updates with glog reflog, timestamped to the second.
  • Read dates in your local time, like 2026-10-01 15:35, instead of Git's verbose default.
  • Expand submodule diffs to inspect the changes inside.
  • Follow commits and working-tree changes live with glog --watch.

Install

cargo install glog-tui git-delta

Requires the latest stable Rust toolchain.

Comparison to other tools

Vanilla Git glog adds interactive browsing and live refresh with familiar pager shortcuts.
Terminal UIs
(lazygit, tig)
glog focuses solely on read-only actions,
so an accidental keypress won't change your files or rewrite history.
Git GUI apps glog is lightweight and fits terminal workspaces such as cmux, where you can keep multiple projects open with a Git view alongside each one.

来源:Hacker News · yairchu.github.io