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

# Отклонение изменений: как «откатить фрагмент» в Overleaf

![Откат фрагмента через режим сравнения в Overleaf — анимированный GIF](/files/26647e3ce16bb6616100dbe8d9595e53664e2641)

Возможно, вы уже знаете о том, как [функция истории версий](https://www.overleaf.com/blog/194-new-year-new-name-new-free-features#!compare) в Overleaf можно использовать для сохранения контрольных версий вашего проекта. Присвоив этим контрольным точкам определённую метку, вы сможете легко восстановить ранее сохранённую версию с помощью опции 'restore' в меню VERSIONS.

![Использование меню Versions в Overleaf](/files/c01b3dfebcd57616d852dd4442158ec81a00aa5a)

Возможно, вы даже знаете, что можете отслеживать изменения между текущим состоянием вашего проекта и ранее сохранённой версией, используя функцию 'compare' справа от сохранённой версии.

Но знаете ли вы, что вы также можете откатывать *отдельные изменения ('chunks')* к предыдущей версии — возможно, чтобы отклонить некоторые изменения, внесённые соавтором, или отменить недавнюю ошибочную строку кода, но при этом принять другие правки? По сути, это позволяет вам рассматривать правки соавтора как предложения, а режим 'compare' использовать как 'suggest mode' для их принятия или отклонения.

![Откат фрагмента через режим сравнения в Overleaf](/files/03c46ee2a77683d261c5f39e7cc9b7419eedab38)

В режиме сравнения вы увидите соответствующие фрагменты изменений в текущей версии (слева) и в сохранённой версии, с которой выполняется сравнение (справа). Вы можете либо принять каждый фрагмент, оставив его как есть, либо отклонить его, нажав стрелку 'revert chunk' между новой и старой версиями (выделенную ярко-розовой стрелкой выше). Только не забудьте снова нажать кнопку 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/ru/baza-znanii/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.
