File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 1
- # Git 开发指南
1
+ # 如何贡献代码
2
2
3
- 这个指南将完成一次完整的代码贡献流程 。
3
+ 我们真诚地感谢您的贡献,欢迎通过 GitHub 的 fork 和 pull request 流程来提交代码 。
4
4
5
- ## Fork
5
+ ## 代码要求
6
+ - 你的代码必须完全遵守 [ doxygen] ( http://www.stack.nl/~dimitri/doxygen/ ) 的样式。
7
+ - 确保编译器选项 WITH\_ STYLE\_ CHECK 已打开,并且编译能通过代码样式检查。
8
+ - 所有代码必须具有单元测试。
9
+ - 通过所有单元测试。
6
10
7
- 首先 Fork < https://github.com/PaddlePaddle/Paddle > ,生成自己目录下的仓库,比如 < https://github.com/USERNAME/Paddle > 。
11
+ 以下教程将指导您提交代码。
12
+ ## [ Fork] ( https://help.github.com/articles/fork-a-repo/ )
13
+
14
+ 跳转到[ PaddlePaddle] ( https://github.com/PaddlePaddle/Paddle ) GitHub首页,然后单击 ` Fork ` 按钮,生成自己目录下的仓库,比如 < https://github.com/USERNAME/Paddle > 。
8
15
9
16
## 克隆(Clone)
10
17
18
+ 将远程仓库 clone 到本地。
19
+
20
+ ``` bash
21
+ ➜ git clone https://github.com/USERNAME/Paddle
22
+ ➜ cd Paddle
23
+ ```
11
24
12
25
13
26
## 创建本地分支
14
27
15
- 所有的 feature 和 bug_fix 的开发工作都应该在一个新的分支上完成,一般从 ` develop ` 分支上创建新分支。
28
+ Paddle 目前使用[ Git流分支模型] ( http://nvie.com/posts/a-successful-git-branching-model/ ) 进行开发,测试,发行和维护。** develop** 是主分支,其他用户分支是特征分支(feature branches)。
29
+
30
+ 所有的 feature 和 bug fix 的开发工作都应该在一个新的分支上完成,一般从 ` develop ` 分支上创建新分支。
16
31
17
32
``` bash
18
33
# (从当前分支)创建名为 MY_COOL_STUFF_BRANCH 的新分支
You can’t perform that action at this time.
0 commit comments