# 版本控制

你可以轻松地使用以下功能监控人们对你的内容所做的所有更改： **版本历史** 侧边栏

### 版本历史 <a href="#see-the-activity-of-a-specific-draft" id="see-the-activity-of-a-specific-draft"></a>

在一个空间的版本历史中，你可以看到所有更改其中内容的操作列表。这些操作包括：

* 当某人进行了 [实时编辑](/docs/documentation/zh/collaboration/live-edits.md) 对空间的更改时。
* 当某人合并了一个 [更改请求](/docs/documentation/zh/collaboration/change-requests.md).
* 当某人执行了一个 [Git 同步](/docs/documentation/zh/getting-started/git-sync.md) 操作时。

### 查看内容的历史版本

要查看内容的历史版本并查看所做的更改，请点击 **版本历史** <picture><source srcset="/files/WVfSPMgIbWWq12Hy83TC" media="(prefers-color-scheme: dark)"><img src="/files/aa0c59dd27f79ad3cdc857a47d9ea0b0f1eabbaa" alt="The Version history icon in GitBook"></picture> 按钮，位于 [空间页眉](/docs/documentation/zh/zi-yuan/gitbook-ui.md#space-header)中，或者打开 **操作菜单** <picture><source srcset="/files/HXFvPsjDqbaBEhpH0WKJ" media="(prefers-color-scheme: dark)"><img src="/files/950d2c0e21d4aa4c603de07a2bc5d827c0d5cbde" alt="The Actions menu icon in GitBook"></picture> 旁边的 **版本历史**.

并选择 [变更请求](/docs/documentation/zh/collaboration/change-requests.md).

### 显示更改

当你查看内容的旧版本时，可以选择突出显示旧内容与当前内容之间的差异——类似于 [更改请求中的差异视图](/docs/documentation/zh/collaboration/change-requests.md#diff-mode).

要启用或禁用此功能，请使用 **显示更改** 位于以下位置底部的切换开关： **版本历史** 侧边栏

启用“显示更改”后，已更改的内容块左侧会显示一个图标进行高亮标记。

### 查看已发布历史版本

如果你正在调查已发布空间的版本历史，也可以查看之前版本在已发布上下文中的预览效果（即最终用户会看到的内容）。

你可以通过以下方式进行：

{% stepper %}
{% step %}
在版本历史侧边栏中，选择修订版本
{% endstep %}

{% step %}
复制 URL 末尾的 ID
{% endstep %}

{% step %}
将其添加到已发布文档 URL 的末尾，格式为 `/~/revisions/<id>`
{% endstep %}
{% endstepper %}

### 回滚到以前的版本

回滚可让你将空间的内容恢复到过去某个时间点的状态。如果你不小心做出了破坏性更改，或者删除了内容，并且需要快速恢复到空间的先前版本，这将非常有帮助。

要将空间回滚到以前的版本，请将鼠标悬停在侧边栏中的该版本上，点击 **操作按钮** <picture><source srcset="/files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="/files/d05670ba93b683794fb3fe95a9fc7ab5c7fceafd" alt="The Actions menu icon in GitBook"></picture> 并选择 **回滚**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/creating-content/version-control.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
