macOS
brew install tiglocal Homebrew formula metadata
安装
brew install tiglocal Homebrew formula metadata
sudo apk add tigAlpine Linux edge package indexes · tig · 来源: dl-cdn.alpinelinux.org
sudo dnf install tigFedora Rawhide package metadata · tig · 来源: dl.fedoraproject.org
nix profile install nixpkgs#tignixpkgs package indexes · pkgs/by-name/ti/tig/package.nix · 来源: api.github.com
sudo pacman -S tigArch Linux sync databases · tig · 来源: geo.mirror.pkgbuild.com
sudo zypper install tigopenSUSE Tumbleweed package metadata · tig · 来源: download.opensuse.org
概览
Text interface for Git repositories
历史
Tig is an ncurses-based text-mode interface for Git. Its README describes it mainly as a Git repository browser that can also stage changes at chunk level and act as a pager for output from Git commands.
Tig grew around a simple package-manager-friendly idea: keep Git's command-line model, but make repository history, diffs, refs, blame, status, and staging navigable in a terminal UI. The manual explicitly says Tig uses underlying Git commands to present views such as commit logs, diffs, trees, blobs, blame, refs, status, stashes, grep results, and pager input.
The public GitHub repository was created in March 2009, and the official release notes show the project continuing through the 2.x series with ongoing fixes, Unicode updates, Git integration changes, editor behavior, blame improvements, status/stage workflow refinements, and security fixes such as the 2.6.1 editor command injection fix.
Tig's design has stayed deliberately close to Git rather than becoming a separate repository manager. Its manual documents that command-line Git options are passed through, Git output can be piped into pager mode, and user-defined commands can reference the current commit, branch, file, line, stash, or repository state.
The input package facts list Tig across Homebrew, Debian, Ubuntu, Fedora/dnf, Alpine/apk, Arch/pacman, openSUSE/zypper, MacPorts, and Nix. That broad packaging footprint matches Tig's long-standing role as a standard terminal companion for Git users.
GitHub repository metadata also shows a large user base for a C/ncurses terminal tool, with many forks and stars and topics including git, ncurses, and tui. For a package database, this is a strong signal that Tig is not just a niche wrapper but a mature CLI application with cross-platform package visibility.
Tig's adoption tracks the popularity of text UIs among developers who want richer navigation than git log or git status without leaving SSH sessions, tmux panes, or minimal development environments.
Common usage is interactive repository browsing: users run tig in a Git worktree to inspect commit history, open diffs, jump into blame, browse trees, inspect refs, and move between views from a single terminal screen.
Tig is also used as a pager. The manual shows piping git show into tig, and the README says it can act as a pager for output from various Git commands, which makes it useful in aliases and scripts that preserve Git's native output while adding navigation and color.
Its status and stage views matter to daily Git users because they allow staging and unstaging changes, including chunk-level staging, without starting a graphical Git client.
Tig is a canonical package-nerd tool: small name, huge day-to-day leverage, packaged everywhere, and useful immediately after brew install tig on a new machine. It represents the Unix packaging sweet spot where a binary depends on familiar libraries and composes with the command line rather than replacing it.
For maintainers and power users, Tig is also interesting because its behavior is tied to Git versions, ncurses, Unicode handling, shells, editors, and terminal quirks. The release notes read like a history of practical terminal-Git edge cases, which is exactly why distributions keep shipping current builds.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
{sysconfdir}/tigrc~/.tigrc$XDG_CONFIG_HOME/tig/config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
tig | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:tig |
|---|---|
| 版本 | 2.6.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/tig |
| 主页 | https://jonas.github.io/tig/ |
| 仓库 | https://github.com/jonas/tig |
| 上游文档 | https://github.com/jonas/tig/blob/master/doc/manual.adoc |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://github.com/jonas/tig/releases/download/tig-2.6.1/tig-2.6.1.tar.gz |
| 最后更新 | 2026-06-14T05:08:25Z |
| Pulse | updated |
| 依赖 | ncurses, pcre2, readline |
| 构建依赖 | pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
| 注意事项 | A sample of the default configuration has been installed to: $HOMEBREW_PREFIX/opt/tig/share/tig/examples/tigrc to override the system-wide default configuration, copy the sample to: $HOMEBREW_PREFIX/etc/tigrc |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tig |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
tig 2.5.8-1+b1
ncurses-based text-mode interface for Git
sudo apt install tigtig
nix profile install nixpkgs#tigtig 2.5.8-1build2
ncurses-based text-mode interface for Git
sudo apt install tigtig 2.6.0-r1
Text-mode interface for the git revision control system
sudo apk add tigtig-doc 2.6.0-r1
Text-mode interface for the git revision control system (documentation)
sudo apk add tig-doctig 2.6.0-2.fc44
Text-mode interface for the git revision control system
sudo dnf install tigtig 2.6.0-1
Text-mode interface for Git.
sudo pacman -S tigtig 2.6.0-1.4
An ncurses-based text-mode interface for git
sudo zypper install tigtig-bash-completion 2.6.0-1.4
Bash completion for tig
sudo zypper install tig-bash-completiontig-zsh-completion 2.6.0-1.4
Zsh completion for tig
sudo zypper install tig-zsh-completiontig
sudo port install tig来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.