# 合并

![](/files/-LezYa5sKRPCguorY6Zr)

## 合并

现在你的更改已在生产中得到验证，现在是时候将代码合并到 `master` 分支中了。

一旦被合并后，拉取请求会保留代码更改的历史记录。因为它们是可搜索的，所以任何人都可以及时回头了解决策的原因和方式。

### **高级技巧**

通过将某些关键字组织到拉取请求的文本中，你可以将 issues 与代码关联起来。合并拉取请求后，相关问题也将关闭。例如，输入短语 `Closes #32` 将关闭仓库中的第 32 个 issue。更多信息，请查看我们的[帮助文档](https://help.github.com/articles/closing-issues-using-keywords/)。


---

# Agent Instructions: 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:

```
GET https://github.highlight.ink/github-flow/merge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
