ODP is a community-driven open source project and we welcome all the contributors. Contributions to the ODP project are expected to adhere to our Code of Conduct.
Before you contribute, please click the Sign in with Github to agree button to sign the CLA. You can find an example here.
What is CLA?
Please follow these steps to create your Pull Request to this repository.
Note:
This section takes creating a PR to the
master
branch as an example. The steps of creating PRs for other branches are similar.
# Define your working directory
working_dir=$HOME/Workspace
# Configure GitHub
user={your Github profile name}
# Create your clone
mkdir -p $working_dir
cd $working_dir
git clone link TODO
# Add upstream
git remote add upstream link TODO
# Set no push for the upstream master
git remote set-url --push upstream no_push
# Confirm your remote setting
git remote -v
Get your local master up-to-date with the upstream/master.
cd $working_dir/docs
git fetch upstream
git checkout master
git rebase upstream/master
Create a new branch based on the master branch.
git checkout -b new-branch-name
Edit some file(s) on the new-branch-name
branch and save your changes.
git status # Checks the local status
git add <file> ... # Adds the file(s) you want to commit. If you want to commit all changes, you can directly use `git add.`
git commit -m "commit-message: update the xx"
# While on your new branch
git fetch upstream
git rebase upstream/master
git push -u origin new-branch-name # "-u" is used to track the remote branch from the origin
$user
with your GitHub account).Compare & pull request
button next to your new-branch-name
branch to create your PR.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。