---
title: "提交图谱"
description: "gitā 将仓库的每个分支绘制在同一张图谱中。合并节点会显示由谁合并以及带来了哪些提交，Pull Request、检查和部署也直接显示在对应提交上。"
url: https://getgita.app/zh-hans/features/history
lang: zh-Hans
---

# 所有分支，尽在一张图谱

历史记录按从新到旧的顺序列出每个分支的提交，并在一旁绘制图谱。提交上的标签会告诉你它所在的分支、关联的 Pull Request、检查是否通过以及部署到了哪里。

A live copy of the app is on the page: https://getgita.app/zh-hans/features/history

## 试试看

1. 点击 **折叠合并**，隐藏每次合并引入的提交。
2. 点击合并节点的标签（例如 **jonas · 3 commits**）查看它包含的提交列表。
3. 选择 **单个分支** 仅查看 main，或选择 **单个作者** 高亮某位开发者的提交。
4. 选中一条提交，在下方阅读其详细信息。

## 提交图谱

- **一张图谱涵盖全部.** 本地分支、远程分支和标签都在同一个列表中，方便你直观对比它们各自的进度。列字段包括提交、作者、日期、SHA 和状态。
- **合并节点说明由谁与何事.** 合并节点的圆点会显示合并者的头像，标签会注明带来了多少条提交。点击标签（或按你的设置悬停其上）即可列出这些提交。
- **将合并折叠起来.** 开启“折叠合并的提交”后，每次合并就代表整个分支，让历史记录读起来像一份清晰的主线落地清单。压缩合并同样可以绘制为合并节点。
- **用文字直观表达状态.** 提交上会显示简洁的状态标签：未推送、#214 请求审查、检查已通过、预览就绪、Live，以及正在其上工作的智能体图标。
- **下方的详情面板.** 选中的提交包含三个标签页：提交信息与部署、Pull Request 和检查详情；更改的文件及其差异对比；以及该提交时刻的完整文件树。
- **每条提交都有右键菜单.** 右键点击提交即可遴选、还原、编辑其后的提交、重置到此提交、打标签、从此创建分支或复制 SHA。
- **圆角或折线.** 图谱线条可以设置为平滑曲线或直线折线，可在“设置 ▸ 历史记录”中调整。

## Questions, answered

### Can I hide the commits a merge brought in?

Yes. Turn on **Collapse merged commits** and each merge stands for its whole branch, so the history reads as a list of what landed. Squash merges can be drawn as merges too.

### Can I see a repository as it was at a commit?

Select the commit: its details have the commit with its message, pull request and checks, its changed files with their diff, and the whole file tree as it was at that commit.

[全部功能](https://getgita.app/zh-hans/features.md)

- **下载 macOS 版:** https://github.com/rolottr/gita/releases/latest
- **在 GitHub 上查看:** https://github.com/rolottr/gita

---

Apple, macOS and Mac are trademarks of Apple Inc. Git is a trademark of Software Freedom Conservancy. GitHub is a trademark of GitHub, Inc. Vercel is a trademark of Vercel Inc. Claude is a trademark of Anthropic, PBC. gitā is independent software and is not affiliated with any of them. 问题反馈: https://github.com/rolottr/gita/issues
