> 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/021-can-multiple-authors-edit-the-same-file-at-the-same-time.md).

# 多个作者可以同时编辑同一个文件吗？

是的！就像 Google 文档一样，Overleaf 支持同时协作编辑。

Overleaf 还借鉴了一些来自 [版本控制系统](https://en.wikipedia.org/wiki/Version_control)，例如 [git](https://git-scm.com/)：您可以保存“标记版本”，它们类似于提交，以确保即使其他人编辑了您的文档，您也始终可以返回并 [与……比较](https://www.overleaf.com/blog/154-a-first-look-at-the-new-version-comparison-feature) 重要版本，例如“初稿”或已提交用于评分或发表的版本。您还可以 [通过 git 访问您的项目](https://www.overleaf.com/blog/195)，以便更轻松地离线工作。

为我们的协作编辑提供支持的技术称为 [操作转换](https://en.wikipedia.org/wiki/Operational_transformation)，简称 OT。您在 Overleaf 上的编辑会每隔几秒发送回服务器并保存。如果两个人或更多人在同一时间编辑该文件，服务器能够将每个更改“rebase”到其他更改之上，从而使所有客户端最终都处于同一版本。为了通知客户端其他客户端所做的更改，我们使用 [WebSocket](https://en.wikipedia.org/wiki/WebSocket)，这是一种允许服务器向已连接客户端推送更新的技术。


---

# 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/021-can-multiple-authors-edit-the-same-file-at-the-same-time.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.
