diff --git a/Comparing commits across time 在交叉时间合并提交.md b/Comparing commits across time 在交叉时间合并提交.md new file mode 100644 index 0000000..6ecd305 --- /dev/null +++ b/Comparing commits across time 在交叉时间合并提交.md @@ -0,0 +1,4 @@ +Comparing commits across time 在交叉时间合并提交 +=========== + +参考: \ No newline at end of file diff --git a/Creating a pull request 创建 pull 请求.md b/Creating a pull request 创建 pull 请求.md index a59c6f6..8e3d47b 100644 --- a/Creating a pull request 创建 pull 请求.md +++ b/Creating a pull request 创建 pull 请求.md @@ -1,6 +1,37 @@ 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/) \ No newline at end of file diff --git a/Creating and deleting branches within your repository 在你的库中创建和删除分支.md b/Creating and deleting branches within your repository 在你的库中创建和删除分支.md new file mode 100644 index 0000000..fdae6df --- /dev/null +++ b/Creating and deleting branches within your repository 在你的库中创建和删除分支.md @@ -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) \ No newline at end of file diff --git a/Merging a pull request 合并一个 pull 请求.md b/Merging a pull request 合并一个 pull 请求.md new file mode 100644 index 0000000..ff3157a --- /dev/null +++ b/Merging a pull request 合并一个 pull 请求.md @@ -0,0 +1,4 @@ +Merging a pull request 合并一个 pull 请求 +=========== + +参考: \ No newline at end of file