> 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/vi/co-so-tri-thuc/124-rejecting-changes-how-to-revert-a-chunk-on-overleaf.md).

# Từ chối thay đổi: Cách 'hoàn nguyên một đoạn' trên Overleaf

![Khôi phục một đoạn thay đổi bằng chế độ so sánh trong Overleaf - ảnh GIF động](/files/5f78da022ea64cfc39211678769af018a318156a)

Có lẽ bạn đã biết về cách mà [tính năng lịch sử phiên bản](https://www.overleaf.com/blog/194-new-year-new-name-new-free-features#!compare) trên Overleaf có thể được dùng để lưu các phiên bản mốc của dự án của bạn. Bằng cách gán cho các mốc này một nhãn cụ thể, bạn có thể dễ dàng khôi phục một phiên bản đã lưu trước đó bằng tùy chọn 'restore' trong menu VERSIONS.

![Sử dụng menu Versions trên Overleaf](/files/ddfe45b2cb5a03970486dffe24a9664c6b95bb64)

Bạn thậm chí có thể biết rằng mình có thể theo dõi các thay đổi giữa trạng thái hiện tại của dự án và một phiên bản đã lưu trước đó, bằng cách dùng chức năng 'compare' ở bên phải của phiên bản đã lưu.

Nhưng bạn có biết rằng bạn cũng có thể hoàn tác *các thay đổi cụ thể ('chunks')* trở về phiên bản trước đó – có lẽ để từ chối một số thay đổi do cộng tác viên thực hiện, hoặc để đảo ngược một dòng mã mới bị sai gần đây, nhưng vẫn chấp nhận các chỉnh sửa khác? Điều này thực chất cho phép bạn xem các sửa đổi của cộng tác viên như những đề xuất, và bạn có thể dùng 'compare mode' như một 'suggest mode' để chấp nhận hoặc từ chối chúng.

![Khôi phục một đoạn thay đổi bằng chế độ so sánh trong Overleaf](/files/8f3d8d1c961bb99450f9f8fe772b1778169906d1)

Khi bạn ở trong chế độ so sánh, bạn sẽ thấy các đoạn thay đổi tương ứng ở phiên bản hiện tại (bên trái) và phiên bản đã lưu để so sánh (bên phải). Bạn có thể chấp nhận từng đoạn bằng cách giữ nguyên nó, hoặc từ chối bằng cách nhấp vào mũi tên 'revert chunk' giữa phiên bản mới và phiên bản cũ (được làm nổi bật bằng mũi tên màu hồng sáng ở trên). Chỉ cần nhớ nhấp nút COMPARE một lần nữa khi bạn xem xét xong các thay đổi để thoát khỏi chế độ so sánh!


---

# 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/vi/co-so-tri-thuc/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.
