关于 Tig
Tig 是一个终端 Git 浏览器,以交互式文本界面展示 Git 历史、提交和变更。支持状态视图、日志视图、差异预览和责任追踪。
主要功能
- 01交互式浏览 Git 提交历史和分支信息
- 02查看文件变更、差异和提交详情
- 03追踪文件的逐行编辑历史和责任分配
- 04快速跳转和搜索提交及文件变更
适用场景
- 01开发者在终端中快速审查代码变更和提交历史
- 02编码 Agent 分析版本控制信息以理解代码演进
- 03团队成员查看谁修改了特定代码行及修改原因
安装
选择你的系统或包管理器,复制命令到终端运行。
$
安装完成后运行tig --version确认安装成功。
命令示例
常用命令按使用顺序排列。
01
02
03
README 原文English
来自项目 READMEREADME 暂无中文译文,以下为英文原文;中文介绍见上方。
Tig: text-mode interface for Git
================================
:docext: adoc
image:https://github.com/jonas/tig/workflows/Linux/badge.svg[Linux CI,link=https://github.com/jonas/tig/actions?query=workflow%3ALinux]
image:https://github.com/jonas/tig/workflows/macOS/badge.svg[macOS CI,link=https://github.com/jonas/tig/actions?query=workflow%3AmacOS]
image:https://ci.appveyor.com/api/projects/status/jxt1uf52o7r0a8r7/branch/master?svg=true[AppVeyor Build,link=https://ci.appveyor.com/project/fonseca/tig]
What is Tig?
------------
Tig is an ncurses-based text-mode interface for git. It functions mainly
as a Git repository browser, but can also assist in staging changes for
commit at chunk level and act as a pager for output from various Git
commands.
Resources
---------
- Homepage: https://github.com/jonas/tig[]
- Manual: https://www.mankier.com/7/tigmanual[]
- Tarballs: https://github.com/jonas/tig/releases[]
- Q&A: https://stackoverflow.com/questions/tagged/tig[]
Bugs and Feature Requests
-------------------------
Bugs and feature requests can be reported using the
https://github.com/jonas/tig/issues[issue tracker] or by mail to the
https://lore.kernel.org/git/[Git mailing list]. Ensure that the word
"tig" is in the subject. For other Tig related questions please use
Stack Overflow: https://stackoverflow.com/questions/tagged/tig[].
If you are sending a bug report, please include the following information:
- What Tig and ncurses versions are you using?
(`tig -v`)
- What system do you have?
(`uname -a`, `lsb_release -a`)
- What Git version are you using?
(`git -v`)
Installation and News
---------------------
Information on how to build and install Tig are found in
link:INSTALL.{docext}[the installation instructions].
News about releases and latest features and bug fixes are found in
link:NEWS.{docext}[the release notes].评论
支持 Markdown