From d7411f57fcb6fb792d067b5bd876b199427e2742 Mon Sep 17 00:00:00 2001 From: waylau Date: Sat, 21 Mar 2015 16:31:15 +0800 Subject: [PATCH] =?UTF-8?q?update=20=20Using=20pull=20requests=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20pull=20=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Fork A Repo.md | 4 ++++ Using pull requests 使用 pull 请求.md | 22 +++++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Fork A Repo.md diff --git a/Fork A Repo.md b/Fork A Repo.md new file mode 100644 index 0000000..dffb0f1 --- /dev/null +++ b/Fork A Repo.md @@ -0,0 +1,4 @@ +Fork A Repo +===== + +*参考*: \ No newline at end of file diff --git a/Using pull requests 使用 pull 请求.md b/Using pull requests 使用 pull 请求.md index 104672e..352d7d2 100644 --- a/Using pull requests 使用 pull 请求.md +++ b/Using pull requests 使用 pull 请求.md @@ -1,6 +1,26 @@ Using pull requests 使用 pull 请求 =========== - +pull 请求让你告诉别人你 push 了一个更改到存储库。一旦 pull 请求被发送,关注的组织可以查看设置的变化,讨论可能的修改,甚至 push 后续的提交如果有必要。 + +本文演示了一个完整的过程。 + +##Types of collaborative development models 协同开发模式类型 + +主要是两种: Fork & pull 和 共享存储库. + +###Fork & pull + +Fork & pull 可以让任何人 fork 现有的存储库,提交更改到他们个人的 fork 而无需访问授权到源存储库。这些变化必须再 pull 进该项目维护者的源存储库。这种模式减少的新贡献者的摩擦,在开源项目中比较流行,因为它使人们能够独立工作,无需前期的协调。 + +###共享存储库 + +他享仓库模型是小团队和组织合作开展私人项目更为普遍。每个人都被授予推访问一个单一的共享资源库和专题分支用于隔离的变化。 + +pull 请求是在 fork&pull 模型中特别有用,因为它们提供了一种方法来通知项目维护者的变化中的 fork 。但是,他们同样适用于共享存储库模式,在他们用来启动代码审查和一般性讨论有关一组变化被合并到主线分支前。 + +##Before you begin 开始之前 + +首先你要有 [Github 账号](https://github.com/signup),了解如何 fork 和 push ,见 [Fork A Repo](Fork A Repo.md) *参考*: \ No newline at end of file