展示 HN:Gitlogue – 一个终端工具,它以动画重现你的 Git 提交。
Show HN: Gitlogue – A terminal tool that replays your Git commits with animation

原始链接: https://github.com/unhappychoice/gitlogue

## Gitlogue:一款电影化的 Git 历史重放工具 Gitlogue 将你的 Git 提交历史转换为一个视觉上引人入胜、动画化的终端体验。它以逼真的打字动画、语法高亮(通过 Tree-sitter 支持 26 种语言)和动态文件树可视化来重放提交。 Gitlogue 使用 Rust 构建,以实现速度和效率,并提供自定义主题(9 个内置 + 完全自定义)、循环提交范围以及忽略特定文件的功能。它非常适合教育、演示、内容创作,或者仅仅为你的工作区添加一个动态显示——甚至可以作为“看起来很忙”模式! **安装:** 可以通过脚本、Brew 或 Cargo 轻松安装。 **使用:** 使用命令控制特定提交、范围、顺序、速度和主题的播放。可以通过 `config.toml` 文件进行配置。 **注意:** Gitlogue 是一种视觉显示工具,*不是* 传统的屏幕保护程序,长时间在 OLED 显示器上使用可能会有烧屏风险。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 展示 HN: Gitlogue – 一个终端工具,以动画重现你的 Git 提交 (github.com/unhappychoice) 16 分,由 unhappychoice 1 小时前发布 | 隐藏 | 过去 | 收藏 | 1 条评论 Gitlogue 是一个 CLI,将你的 Git 提交转换为打字风格的重放。它逐行可视化差异,显示文件树,并像实时打字一样回放每个编辑。关键点:• 逼真的打字动画 • 语法高亮差异 • 文件树视图 • 重放任何提交 • 自包含 CLI 演示视频在 README 中。仓库:https://github.com/unhappychoice/gitlogue aunderscored 13 分钟前 [–] 这看起来很可爱。我想知道它是否能帮助审查那些奇怪的 PR 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Terminal Trove Tool of The Week

gitlogue demo

A cinematic Git commit replay tool for the terminal, turning your Git history into a living, animated story.

Watch commits unfold with realistic typing animations, syntax highlighting, and file tree transitions, transforming code changes into a visual experience.

Using Install Script (Recommended)

curl -fsSL https://raw.githubusercontent.com/unhappychoice/gitlogue/main/install.sh | bash
brew install unhappychoice/tap/gitlogue
git clone https://github.com/unhappychoice/gitlogue.git
cd gitlogue
cargo install --path .

See the Installation Guide for more options and troubleshooting.

🎬 Commit Replay as Animation — Realistic typing, cursor movement, deletions, and file operations
🎨 Tree-sitter Syntax Highlighting — 26 languages supported
🌳 Project File Tree — Directory structure with change statistics
🖥️ Screensaver Mode — Endless random commit playback
🎭 Themes — 9 built-in themes + full customization support
Fast & Lightweight — Built with Rust for performance

🖥️ Screensaver — Ambient coding display for your workspace
🎓 Education — Visualize how code evolved over time
📺 Presentations — Replay real commit histories live
🎬 Content Creation — Record demos with VHS or asciinema
🎨 Desktop Ricing — A living decoration for your terminal
💼 Look Busy Mode — Appear productive during meetings

Warning

Not a True Screensaver — gitlogue does not include traditional screensaver functions like power management or screen blanking. It's purely a visual display tool.

OLED Burn-in Risk — Static elements (like the editor background and border lines) may cause burn-in on OLED displays over extended periods. LCD displays are generally safe from this issue.

# Start the cinematic screensaver
gitlogue

# View a specific commit
gitlogue --commit abc123

# Replay a range of commits
gitlogue --commit HEAD~5..HEAD

# Replay commits in chronological order (oldest first)
gitlogue --order asc

# Loop a specific commit continuously
gitlogue --commit abc123 --loop

# Loop through a commit range
gitlogue --commit HEAD~10..HEAD --loop

# Use a different theme
gitlogue --theme dracula

# Adjust typing speed (ms per character)
gitlogue --speed 20

# Ignore specific file patterns (e.g., notebooks, lock files)
gitlogue --ignore "*.ipynb" --ignore "poetry.lock"

# Use an ignore file
gitlogue --ignore-file .gitlogue-ignore

# List available themes
gitlogue theme list

# Set default theme
gitlogue theme set dracula

# Combine options
gitlogue --commit HEAD~5 --theme nord --speed 15 --ignore "*.ipynb"

gitlogue can be configured via ~/.config/gitlogue/config.toml.
You can set the default theme, typing speed, and background preferences.

See the Configuration Guide for full options and examples.

Rust, TypeScript, JavaScript, Python, Go, Ruby, Swift, Kotlin, Java, PHP, C#, C, C++, Haskell, Dart, Scala, Clojure, Zig, Elixir, Erlang, HTML, CSS, JSON, Markdown, YAML, XML

Installation Guide
Usage Guide
Configuration Guide
Theme Customization
Contributing Guidelines
Architecture Overview

Git Visualization & Coding

  • GitType - A CLI code-typing game that turns your source code into typing challenges
  • tarts - Collection of terminal screensavers in Rust (Matrix, Game of Life, Boids, 3D effects, and more)
  • cbonsai - Grow beautiful bonsai trees in your terminal
  • asciiquarium - Enjoy the mysteries of the sea from your terminal
  • cmatrix - The Matrix screensaver effect for your terminal
  • pipes.sh - Animated pipes flowing through your terminal

Contributions are welcome.
See the Contributing Guidelines for details.

ISC License. See LICENSE for details.

@unhappychoice

联系我们 contact @ memedata.com