> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/zh-cn/geng-duo-zhu-ti/49-using-the-history-feature.md).

# 使用历史记录功能

该 **历史** “历史”功能可让您创建和管理项目的不同版本。您可以查看、下载并比较项目版本，以前删除的文件可以恢复，协作者添加的内容也能一目了然。

## 使用完整的历史功能

**完整项目历史** 是一个 [高级功能](/latex/zh-cn/zhi-shi-ku/120-overleaf-premium-features.md)。Overleaf 高级功能对以下用户开放： [Overleaf Commons](https://www.overleaf.com/for/universities)、群组成员 [订阅](https://www.overleaf.com/for/groups)，以及个人 [订阅](https://www.overleaf.com/user/subscription/plans)。对于免费计划用户，历史面板将显示过去 24 小时内所做的编辑。如果您需要查看 24 小时前的历史记录，或者您想试用完整的 **历史** 功能，以及其他 [高级功能](/latex/zh-cn/zhi-shi-ku/120-overleaf-premium-features.md)，您可以开始免费试用 [这里](https://www.overleaf.com/user/plans).

只需项目所有者拥有高级订阅，他们及任何协作者就都可以访问完整历史记录。

## 如何访问项目历史记录

点击 **历史**，位于预览面板上方，以访问 **历史** 功能。然后您可以选择：

* **全部历史记录** 以查看所有可用的历史版本。
* **标签** 以访问您创建的标签列表。

### 如何返回编辑模式

要退出 **历史** 模式并返回正常编辑模式，只需点击 **历史** 即可。

### 如果您复制项目，历史记录会怎样？

一个 [已复制的项目](/latex/zh-cn/zhi-shi-ku/030-copying-a-project.md) 会从全新的历史记录开始——原始项目的历史记录不会复制到新项目中。

## 如何为项目版本添加标签或下载

要为项目版本添加标签或下载，您需要：

* 切换到 **全部历史记录** 视图。
* 选择三点菜单 ![Image of the three dot menu icon used to access History actions](/files/b9e08933248345842a91186df898676dfd044126) 以访问操作 **为此版本添加标签** 和 **下载此版本**.

![LabelAVersion.png](/files/2fb4e10bd207f45d3aa40913bee60033afb15363)

### 如何为项目版本添加标签

按以下步骤为项目版本添加标签：

1. 切换到 **全部历史记录** 视图。
2. 选择三点菜单 ![Image of the three dot menu icon used to access History actions](/files/b9e08933248345842a91186df898676dfd044126) 在您想要添加标签的版本上。
3. 选择 **为此版本添加标签**.
4. 在弹出窗口中输入所需标签并选择 **添加标签**.

![用于为 Overleaf 项目版本添加标签的弹出窗口图片](/files/ff5a6efad254baed1643ec58afb2b816848cec19)

**注意：** 您可以为每个项目版本添加多个标签。

### 如何为项目的当前版本添加标签

项目的当前版本标记为 **当前状态**。按以下步骤编辑该标签：

1. 选择 **标签** 历史面板中的选项卡。
2. 选择三点菜单 ![Image of the three dot menu icon used to access History actions](/files/b9e08933248345842a91186df898676dfd044126).

![为当前项目状态添加标签](/files/4d1a51c701249c9888cb2b833343008362af1521)

5. 选择 **为此版本添加标签**.
6. 在弹出窗口中输入所需标签并选择 **添加标签**.

### 如何下载项目版本

按以下步骤下载项目版本：

1. 切换到 **全部历史记录** 视图（或 **标签** 视图）。
2. 选择三点菜单 ![3dotmenu2.png](/files/b9e08933248345842a91186df898676dfd044126) 在您想要下载的版本上。
3. 选择 **下载此版本**.
4. 一个 `.zip` 文件（包含您的项目文件）会生成并下载到您的设备。

## 如何比较版本

要选择要比较的版本范围，请使用图标 ![Image of an icon used to select Overleaf project versions for comparison.](/files/e7e6de7e2dcf10a55fb480d1f78acc1b40950a47), ![Image of an icon used to select Overleaf project versions for comparison.](/files/b1e8c32dea524e4bdd92c6a4c54909c4118af2eb) 或 ![Image of an icon used to select Overleaf project versions for comparison.](/files/964d52a1d6a92f15ce26ed216983d337ad0912f6) ，它们位于每个项目版本上。请注意，项目版本按时间顺序排列，最新的在顶部，较旧的版本在列表下方，这些图标执行以下操作：

* ![Image of an icon used to select Overleaf project versions for comparison.](/files/964d52a1d6a92f15ce26ed216983d337ad0912f6)：比较至此版本
* ![Image of an icon used to select Overleaf project versions for comparison.](/files/e7e6de7e2dcf10a55fb480d1f78acc1b40950a47)：从此版本开始比较
* ![Image of an icon used to select Overleaf project versions for comparison.](/files/b1e8c32dea524e4bdd92c6a4c54909c4118af2eb)：此图标出现在当前比较范围中间的版本上。它提供一个下拉菜单，包含
  * 比较至此版本
  * 从此版本开始比较

以下 45 秒视频演示如何比较项目版本。

{% embed url="<https://videos.ctfassets.net/nrgyaltdicpt/7amsdRFz12kuViImmUuApS/89b47a08232cfa59d80c10bf6557b2e0/HistoryUIDemo.mp4>" %}

## 如何恢复整个项目或单个项目文件

只需单击一下，您就可以将整个项目——或单个文件——恢复到先前版本，并保留评论和修订痕迹。

### 如何将单个文件恢复到先前版本

按以下步骤将单个文件恢复到先前版本。此过程会将文件内容以及任何评论和修订痕迹恢复到所选日期和时间时的状态。

1. 切换到 **全部历史记录** 视图。
2. 选择您希望恢复的文件版本。
3. 选择 **恢复此版本** 以恢复该文件。

![恢复文件版本的步骤。](/files/ff8349c9f6a898b340655ced3f8e6bd6b2853296)

5. 系统会要求您确认您想要 **恢复此版本** 所选文件的 **恢复** 以确认。

![Overleaf 的弹出模态窗口，用于确认您是否要恢复文件](/files/7c0aba860f7cfb01efdb61c9c713bc010f261171)

7. Overleaf 会恢复该文件，并将您的项目退出 **历史** 模式并切换回编辑模式。

### 如何恢复已删除的文件

按以下步骤恢复意外删除的文件。

1. 切换到 **全部历史记录** 视图。
2. 选择文件被删除时的项目版本。
3. 从项目文件列表中选择已删除的文件（它会被划掉）。
4. 选择 **恢复此版本** 以恢复该文件。

![展示如何使用新的历史界面恢复已删除项目文件的图片。](/files/53e4a2cf216af954547e522429e6f5d03d83ba3f)

6. 系统会要求您确认您想要 **恢复此版本** 所选文件的 **恢复** 以确认。

![Overleaf 的弹出模态窗口，用于确认您是否要恢复文件](/files/4939159b94fb7028e96a949cb314a8f615864aa5)

8. Overleaf 会恢复该文件，并将您的项目退出 **历史** 模式并切换回编辑模式。

### 如何恢复项目的旧版本

按以下步骤将整个项目恢复到先前版本。此过程会将项目内容以及任何评论和修订痕迹恢复到所选日期和时间时的状态。

1. 切换到 **全部历史记录** 视图。
2. 选择您希望恢复的项目版本。
3. 选择三点菜单（![Image of the three dot menu icon used to access History actions](/files/b9e08933248345842a91186df898676dfd044126)).
4. 选择 **将项目恢复到此版本**.

![如何恢复 Overleaf 项目版本](/files/2b00a0278227edcfa9d4248b5f5cc9e97c7dd585)

6. 系统会要求您确认是否要将整个项目恢复到指定日期和时间时的状态——包括任何评论和修订痕迹。选择 **恢复** 以确认。

![Overleaf 的弹出模态窗口，用于确认您是否要恢复项目](/files/94dfd5d39897d8099c966bddf2360cb580f2b750)

8. Overleaf 会恢复您的项目，并退出 **历史** 模式并切换回编辑模式。您需要选择要继续编辑的文件。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/zh-cn/geng-duo-zhu-ti/49-using-the-history-feature.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
