You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
github-help/Creating a pull request 创建 ...

37 lines
1.6 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Creating a pull request 创建 pull 请求
===========
创建一个 pull 请求是为了协作更改存储库。这些变化会产生一个分支,它确保主分支保持干净整洁。
在你可以打开一个 pull 请求之前,您必须[创建一个分支](Creating and deleting branches within your repository 在你的库中创建和删除分支.md),然后添加提交到分支。Pull 请求只能在你的分支和上游分支之间有区别时打开。
1.切换到你要改变的库
2.在“Branch”菜单选择包含你的提交的分支。
![](https://help.github.com/assets/images/help/pull_requests/branch-dropdown.png)
3.“Branch”菜单右侧点击 Compare and Review
![](https://help.github.com/assets/images/help/pull_requests/pull-request-start-review-button.png)
4.对比页面,将会自动选择 [基本和对比分支](Comparing commits across time 在交叉时间合并提交)。要改变,点击 Edit
![](https://help.github.com/assets/images/help/pull_requests/edit-compare-branches.png)
5.在对比页面,点击 Create pull request
![](https://help.github.com/assets/images/help/pull_requests/pull-request-click-to-create.png)
6.在你的 pull 请求中,输入 标题和描述
![](https://help.github.com/assets/images/help/pull_requests/pullrequest-description.png)
7.点击 Create pull request
![](https://help.github.com/assets/images/help/pull_requests/pullrequest-send.png)
当你 pull 请求已被审查,可以[合并到库](Merging a pull request 合并一个 pull 请求.md)。
*参考*[https://help.github.com/articles/creating-a-pull-request/](https://help.github.com/articles/creating-a-pull-request/)