> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-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. 选择 **恢复此版本** 以恢复该文件。

![显示如何使用新的 History 用户界面恢复已删除项目文件的图片。](/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://ayakaleaf-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.
