# 发起拉取请求

干得漂亮！你在非 `master` 分支中做了更改，现在可以发起一个\_拉取请求\_。

拉取请求是在 GitHub 上合作的核心。当你发起一个拉取请求，意味着你做出了更改而请求某人审核并提取你的贡献，并将其合并到他们的分支中。拉取请求会显示来自两个分支的\_内容差异\_。修改、新增和删减分别以绿色和红色显示。

即使是在代码完成之前提交，你也可以发起拉取请求并开始讨论。

通过在拉取请求消息中使用 GitHub 的 [@提及 系统](https://help.github.com/articles/about-writing-and-formatting-on-github/#text-formatting-toolbar)，你可以询问特定人员或团队的反馈，无论他们是在大厅还是 10 个时区之外。

你甚至可以在自己的仓库中发起拉取请求并自行合并。在开展大型项目之前，这是学习 GitHub 工作流的好方法。

**为 README 所做的修改发起一个拉取请求**

*点击图片可放大查看*

| 步骤                                                                        | 截图                                                                                                                                               |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| 单击 **Pull Request** 选项卡，然后从其页面中，单击 **New pull request** 按钮。               | [![pr-tab](https://guides.github.com/activities/hello-world/pr-tab.gif)](https://guides.github.com/activities/hello-world/pr-tab.gif)            |
| 在 **Example Comparisons** 块中，选择你创建的`readme-edits` 分支，与 `master`（即原始分支）比较。 | [![branch](https://guides.github.com/activities/hello-world/pick-branch.png)](https://guides.github.com/activities/hello-world/pick-branch.png)  |
| 在“比较”页面上查看差异中的更改，确保它们是你想要提交的内容。                                           | [![diff](https://guides.github.com/activities/hello-world/diff.png)](https://guides.github.com/activities/hello-world/diff.png)                  |
| 如果你对要提交的更改感到满意，则单击绿色的 **Create Pull Request** 按钮。                         | [![create-pull](https://guides.github.com/activities/hello-world/create-pr.png)](https://guides.github.com/activities/hello-world/create-pr.png) |
| 为你的拉取请求填写标题与更改的简要说明。                                                      | [![pr-form](https://guides.github.com/activities/hello-world/pr-form.png)](https://guides.github.com/activities/hello-world/pr-form.png)         |

完成消息填写后，单击 **Create pull request**！

> \*\*提示：\*\*你可以在评论和拉取请求消息中使用 [emoji](https://help.github.com/articles/basic-writing-and-formatting-syntax/#using-emoji) 和 [图片拖放](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/)。


---

# 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/hello-world/open-a-pull-request.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.
