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

# Rejecting changes: How to 'revert a chunk' on Overleaf

![Reverting a chunk via the compare mode in Overleaf - animated gif](/files/BEzdRS9TbRB02zeidQ7P)

You may already know about how the [version history feature](https://www.overleaf.com/blog/194-new-year-new-name-new-free-features#!compare) on Overleaf can be used to save milestone versions of your project. By giving these milestones a specific label, you can easily restore a previously saved version using the 'restore' option under the VERSIONS menu.

![Using the Versions menu on Overleaf](/files/dG1xfFycdsCduacOUuPX)

You may even know that you can track the changes between the current state of your project and a previously saved version, by using the 'compare' function to the right of the saved version.

But did you know that you can also revert *specific changes ('chunks')* to the previous version – perhaps to reject some changes made by a co-author, or to reverse a recent erroneous line of code, but accepting other edits? This effectively lets you treat your co-author's revisions as suggestions, where you can us the 'compare mode' as a 'suggest mode' for accepting or rejecting them.

![Reverting a chunk via the compare mode in Overleaf](/files/pTsn5fAasuv9piDolzlx)

When you're in the compare mode, you'll see the corresponding chunks of changes in the current version (on the left) and the saved version to compare (on the right). You can either accept each chunk by leaving it be, or reject it by clicking the 'revert chunk' arrow between the new and old versions (highlighted by the bright pink arrow above). Just remember to click the COMPARE button again when you're done reviewing the changes to exit compare mode!


---

# 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/knowledge-base/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.
