> 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-tw/geng-duo-zhu-ti/49-using-the-history-feature.md).

# 使用歷史記錄功能

該 **歷史** 功能可讓你建立並管理專案的不同版本。你可以檢視、下載及比較專案版本，先前刪除的檔案可還原，而協作者新增的內容也能一目了然。

## 使用完整的歷史功能

**完整專案歷史** 是 [付費功能](/latex/zh-tw/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-tw/zhi-shi-ku/120-overleaf-premium-features.md)，你可以開始免費試用 [這裡](https://www.overleaf.com/user/plans).

只有專案擁有者需要訂閱付費方案，擁有者本人及任何協作者才能存取完整歷史記錄。

## 如何存取專案的歷史記錄

點擊 **歷史**，位於預覽面板上方，即可存取 **歷史** 功能。接著你可以選擇：

* **所有歷史** 以查看所有可用的歷史版本。
* **標籤** 以查看你已建立的標籤清單。

### 如何返回編輯模式

若要退出 **歷史** 模式並返回一般編輯模式，只要再次點擊 **歷史** 即可。

### 如果你複製專案，歷史記錄會怎麼處理？

一個 [已複製的專案](/latex/zh-tw/zhi-shi-ku/030-copying-a-project.md) 會從全新的歷史記錄開始——原始專案的歷史記錄不會複製到新專案。

## 如何為專案版本加上標籤或下載

若要為專案版本加上標籤或下載，你需要：

* 切換到 **所有歷史** 檢視。
* 選擇三點選單 ![Image of the three dot menu icon used to access History actions](/files/f9c90f93d490e7b2884d7b35efd3c87871238521) 以使用動作 **為此版本加上標籤** 和 **下載此版本**.

![LabelAVersion.png](/files/3aa277c20e2e143ceaf5743b213d10835cd6ac47)

### 如何為專案版本加上標籤

請依下列步驟為專案版本加上標籤：

1. 切換到 **所有歷史** 檢視。
2. 選擇三點選單 ![Image of the three dot menu icon used to access History actions](/files/f9c90f93d490e7b2884d7b35efd3c87871238521) 在你想加上標籤的版本上。
3. 選擇 **為此版本加上標籤**.
4. 在彈出視窗中輸入所需的標籤，然後選擇 **新增標籤**.

![用於為 Overleaf 專案版本加上標籤的彈出視窗圖片](/files/307665f1afa52e238502418a6972eb2e94a4fdf5)

**注意：** 你可以為每個專案版本加上多個標籤。

### 如何為專案的目前版本加上標籤

專案目前版本的標籤是 **目前狀態**。請依下列步驟編輯該標籤：

1. 選擇 **標籤** 歷史面板中的分頁。
2. 選擇三點選單 ![Image of the three dot menu icon used to access History actions](/files/f9c90f93d490e7b2884d7b35efd3c87871238521).

![為目前專案狀態加上標籤](/files/22a410166d452a491df1af7655c6c60122144e5d)

5. 選擇 **為此版本加上標籤**.
6. 在彈出視窗中輸入所需的標籤，然後選擇 **新增標籤**.

### 如何下載專案版本

請依下列步驟下載專案版本：

1. 切換到 **所有歷史** 檢視（或 **標籤** 檢視）。
2. 選擇三點選單 ![3dotmenu2.png](/files/f9c90f93d490e7b2884d7b35efd3c87871238521) 在你要下載的版本上。
3. 選擇 **下載此版本**.
4. 一個 `.zip` 檔案會被產生，內含你的專案檔案，並下載到你的裝置。

## 如何比較版本

若要選取一段要比較的版本範圍，請使用圖示 ![Image of an icon used to select Overleaf project versions for comparison.](/files/d801d4544010bfad0d8b2d02482e1cd077c805cd), ![Image of an icon used to select Overleaf project versions for comparison.](/files/d03af476cdd5072689e0afe390dfbbab4fee665b) 或 ![Image of an icon used to select Overleaf project versions for comparison.](/files/4e798557c08d62cbe8a7576b5b2af42726009101) ，這些圖示位於每個專案版本上。請注意，專案版本會依時間順序列出，最新版本在最上方，較舊的版本則在清單下方，這些圖示會執行以下動作：

* ![Image of an icon used to select Overleaf project versions for comparison.](/files/4e798557c08d62cbe8a7576b5b2af42726009101)：比較至此版本為止
* ![Image of an icon used to select Overleaf project versions for comparison.](/files/d801d4544010bfad0d8b2d02482e1cd077c805cd)：從此版本開始比較
* ![Image of an icon used to select Overleaf project versions for comparison.](/files/d03af476cdd5072689e0afe390dfbbab4fee665b)：此圖示會出現在目前比較範圍中間的版本上。它會提供一個下拉選單，包含
  * 比較至此版本為止
  * 從此版本開始比較

以下 45 秒影片示範如何比較專案版本。

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

## 如何還原整個專案或個別專案檔案

只要按一下，你就可以將整個專案——或個別檔案——還原到先前版本，並保留註解與追蹤變更。

### 如何將單一檔案還原到先前版本

請依下列步驟將單一檔案還原到先前版本。此程序會將檔案內容，以及任何註解和追蹤變更，還原到所選日期與時間的狀態。

1. 切換到 **所有歷史** 檢視。
2. 選擇你要還原的檔案版本。
3. 選擇 **還原此版本** 以重新恢復檔案。

![還原檔案版本的步驟。](/files/ae06997bf905978a6d2e5fd9cfb0eb3d2be8852e)

5. 系統會要求你確認是否要 **還原此版本** 所選檔案的。請選擇 **還原** 以確認。

![Overleaf 用來確認你是否要還原檔案的彈出式對話框](/files/d7bed4e7f4b44d1135ad03f650412f40b427885e)

7. Overleaf 會還原檔案，並將你的專案從 **歷史** 模式切換回編輯模式。

### 如何復原已刪除的檔案

請依下列步驟復原不小心刪除的檔案。

1. 切換到 **所有歷史** 檢視。
2. 選擇檔案被刪除時的專案版本。
3. 從專案檔案清單中選取已刪除的檔案（它會被劃掉）。
4. 選擇 **還原此版本** 以復原檔案。

![顯示如何使用新的歷史使用者介面還原已刪除專案檔案的圖片。](/files/5d46117def2487bcd68f4d2208877f58f3c7d01d)

6. 系統會要求你確認是否要 **還原此版本** 所選檔案的。請選擇 **還原** 以確認。

![Overleaf 用來確認你是否要還原檔案的彈出式對話框](/files/fec72ee8c4ad7f9e0ec5b13575ad1b16564858d8)

8. Overleaf 會還原檔案，並將你的專案從 **歷史** 模式切換回編輯模式。

### 如何還原專案的舊版本

請依下列步驟將整個專案還原到先前版本。此程序會將專案內容，以及任何註解和追蹤變更，還原到所選日期與時間的狀態。

1. 切換到 **所有歷史** 檢視。
2. 選擇你要還原的專案版本。
3. 選擇三點選單（![Image of the three dot menu icon used to access History actions](/files/f9c90f93d490e7b2884d7b35efd3c87871238521)).
4. 選擇 **將專案還原到此版本**.

![如何還原 Overleaf 專案版本](/files/74f25795db196a3d60c626967d65d72cea5a29ce)

6. 系統會要求你確認是否要將整個專案還原到指定日期與時間的狀態——包括任何註解與追蹤變更。選擇 **還原** 以確認。

![Overleaf 用來確認你是否要還原專案的彈出式對話框](/files/a20eb90461ad13ad609a789cda1e100a9cfd97ec)

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-tw/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.
