> 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/zhi-shi-ku/124-rejecting-changes-how-to-revert-a-chunk-on-overleaf.md).

# 拒絕變更：如何在 Overleaf「還原一段」

![在 Overleaf 中透過比較模式還原區塊－動畫 GIF](/files/7b70cc9bb9af647699ca31a85da4d3578f61f0b2)

你可能已經知道， [版本歷史功能](https://www.overleaf.com/blog/194-new-year-new-name-new-free-features#!compare) 在 Overleaf 上可用來儲存專案的里程碑版本。只要為這些里程碑加上特定標籤，你就可以使用 VERSIONS 選單下的「restore」選項，輕鬆還原先前儲存的版本。

![在 Overleaf 上使用 Versions 選單](/files/120c98a0ca4994d0627ef52ec79b592a44f42bf4)

你甚至可能知道，你可以使用已儲存版本右側的「compare」功能，追蹤目前專案狀態與先前儲存版本之間的變更。

但你知道你也可以還原 *特定變更（「chunks」）* 到先前的版本——也許是為了拒絕共同作者所做的一些變更，或回復最近一行錯誤的程式碼，但同時接受其他編輯？這樣一來，你實際上可以把共同作者的修訂視為建議，並將「compare mode」作為「suggest mode」來接受或拒絕它們。

![在 Overleaf 中透過比較模式還原區塊](/files/490443028e004b5c7f716322ac7e214b8fdacaa2)

當你進入比較模式時，你會在左側看到目前版本中對應的變更區塊，以及在右側看到要比較的已儲存版本。你可以將每個區塊保持不動來接受它，或點擊新舊版本之間的「還原區塊」箭頭將其拒絕（上方亮粉紅色箭頭已標示）。別忘了在檢視完變更後，再次點擊 COMPARE 按鈕以退出比較模式！


---

# 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/zhi-shi-ku/124-rejecting-changes-how-to-revert-a-chunk-on-overleaf.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.
