Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
425e5b0b
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
425e5b0b
编写于
9月 19, 2016
作者:
E
emailweixu
提交者:
Yu Yang
9月 20, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Instructions for update pull request (#84)
上级
159dd833
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
24 addition
and
6 deletion
+24
-6
doc/build/contribute_to_paddle.md
doc/build/contribute_to_paddle.md
+24
-6
未找到文件。
doc/build/contribute_to_paddle.md
浏览文件 @
425e5b0b
...
@@ -25,9 +25,12 @@ repo or just head straight to the command line:
...
@@ -25,9 +25,12 @@ repo or just head straight to the command line:
```
shell
```
shell
# Clone your fork to your local machine
# Clone your fork to your local machine
git clone git@github.com:USERNAME/Paddle.git
git clone https://github.com/USERNAME/Paddle.git
```
Then you can start to develop by making a local developement branch
```
shell
git checkout
-b
MY_COOL_STUFF_BRANCH origin/master
```
```
Then you can start to develop.
## Commit
## Commit
...
@@ -45,7 +48,7 @@ are the details if any.
...
@@ -45,7 +48,7 @@ are the details if any.
## Keeping Fork Up to Date
## Keeping Fork Up to Date
Before pull your request, you sho
ld sync you
code from the latest PaddlePaddle.
Before pull your request, you sho
uld sync your
code from the latest PaddlePaddle.
To do this, you'll need to add a remote at first:
To do this, you'll need to add a remote at first:
```
shell
```
shell
...
@@ -60,8 +63,7 @@ git remote -v
...
@@ -60,8 +63,7 @@ git remote -v
Update your fork with the latest upstream changes:
Update your fork with the latest upstream changes:
```
shell
```
shell
git fetch upstream
git pull
--rebase
upstream HEAD
git pull upstream master
```
```
If there are no unique commits locally, git will simply perform a fast-forward.
If there are no unique commits locally, git will simply perform a fast-forward.
...
@@ -74,10 +76,26 @@ Now, your local master branch is up-to-date with everything modified upstream.
...
@@ -74,10 +76,26 @@ Now, your local master branch is up-to-date with everything modified upstream.
```
shell
```
shell
# push to your repository in Github
# push to your repository in Github
git push origin
master
git push origin
HEAD
```
```
## Pull Request
## Pull Request
Go to the page for your fork on GitHub, select your development branch,
Go to the page for your fork on GitHub, select your development branch,
and click the
**pull request button**
.
and click the
**pull request button**
.
## Update your pull request with the lastest version
During the code review, your pull request may become stale because new commits in
baidu/Paddle. GitHub allows autmotic update if there is no conflict. You can do this
by clicking the "Update Branch" button in your pull request page. However, in the case
of conflict, you need to do the update manually. You need to do the following on
your local repository:
```
shell
git checkout MY_COOL_STUFF_BRANCH
git pull
--rebase
upstream HEAD
# You may need to resolve the conflict according to the git prompt.
# Make and test your code.
git push
-f
origin HEAD
```
Now your Pull Request is updated with the latest version.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录