Contribute to PaddlePaddleJust head over to the GitHub page and click the “Fork” button. It’s just that simple.
CloneOnce you’ve created a fork, you can use your favorite git client to clone your repo or just head straight to the command line:
Then you can start to develop by making a local developement branch
Commit your changes by following command lines:
The first line of commit infomation is the title. The second and later lines are the details if any.
Keeping Fork Up to Date
Before pull your request, you should sync your code from the latest PaddlePaddle. To do this, you’ll need to add a remote at first:
Update your fork with the latest upstream changes:
If there are no unique commits locally, git will simply perform a fast-forward. However, if you have been making changes (in the vast majority of cases you probably shouldn’t be), you may have to deal with conflicts.
Now, your local master branch is up-to-date with everything modified upstream.
Push to GitHub
Go to the page for your fork on GitHub, select your development branch, 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:
Now your Pull Request is updated with the latest version.