mirror of
https://github.com/waylau/github-help.git
synced 2026-08-12 20:32:17 +08:00
completed Creating a pull request 创建 pull 请求
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
Comparing commits across time 在交叉时间合并提交
|
||||
===========
|
||||
|
||||
参考:<https://help.github.com/articles/comparing-commits-across-time/#comparing-branches>
|
||||
@@ -1,6 +1,37 @@
|
||||
Creating a pull request 创建 pull 请求
|
||||
===========
|
||||
|
||||
创建一个 pull 请求是为了协作更改存储库。这些变化会产生一个分支,它确保主分支保持干净整洁。
|
||||
|
||||
在你可以打开一个 pull 请求之前,您必须[创建一个分支](Creating and deleting branches within your repository 在你的库中创建和删除分支.md),然后添加提交到分支。Pull 请求只能在你的分支和上游分支之间有区别时打开。
|
||||
|
||||
1.切换到你要改变的库
|
||||
|
||||
2.在“Branch”菜单,选择包含你的提交的分支。
|
||||
|
||||

|
||||
|
||||
3.“Branch”菜单右侧,点击 Compare and Review
|
||||
|
||||

|
||||
|
||||
4.对比页面,将会自动选择 [基本和对比分支](Comparing commits across time 在交叉时间合并提交)。要改变,点击 Edit
|
||||
|
||||

|
||||
|
||||
5.在对比页面,点击 Create pull request
|
||||
|
||||

|
||||
|
||||
6.在你的 pull 请求中,输入 标题和描述
|
||||
|
||||

|
||||
|
||||
7.点击 Create pull request
|
||||
|
||||

|
||||
|
||||
当你 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/)
|
||||
@@ -0,0 +1,4 @@
|
||||
Creating and deleting branches within your repository 在你的库中创建和删除分支
|
||||
===========
|
||||
|
||||
参考:[https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/#creating-a-branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/#creating-a-branch)
|
||||
@@ -0,0 +1,4 @@
|
||||
Merging a pull request 合并一个 pull 请求
|
||||
===========
|
||||
|
||||
参考:<https://help.github.com/articles/merging-a-pull-request/>
|
||||
Reference in New Issue
Block a user