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

# 拒绝更改：如何在 Overleaf 上“revert a chunk”

![在 Overleaf 中通过比较模式还原一个更改块 - 动图](/files/4ed2cb2a3a3061c91cc200cd0110edb1c64cd196)

你可能已经知道， [版本历史功能](https://www.overleaf.com/blog/194-new-year-new-name-new-free-features#!compare) 在 Overleaf 上可用于保存项目的里程碑版本。通过为这些里程碑添加特定标签，你可以使用 VERSIONS 菜单下的“恢复”选项，轻松恢复到之前保存的版本。

![在 Overleaf 上使用 Versions 菜单](/files/c89e869c1c916ada54db3809a0c509fa3627bbc7)

你甚至可能知道，通过使用已保存版本右侧的“compare”功能，你可以跟踪项目当前状态与之前保存版本之间的变化。

但你知道你还可以还原 *特定的更改（“chunks”）* 到先前版本——也许是为了拒绝合作者所做的一些更改，或者回退最近一行错误的代码，同时保留其他编辑？这实际上让你可以把合作者的修订视为建议，并将“compare mode”当作一种“suggest mode”来接受或拒绝这些修订。

![在 Overleaf 中通过比较模式还原一个更改块](/files/1ec2be1f60a87e894c966b9c9ae41ef037ad9cf5)

当你处于比较模式时，你会看到当前版本中的相应更改块（左侧）以及用于比较的已保存版本（右侧）。你可以通过保持不动来接受每个更改块，或者点击新旧版本之间的“还原更改块”箭头来拒绝它（上方用亮粉色箭头标出）。只要记得在完成查看更改后，再次点击 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-cn/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.
