Fork 与 Clone
第一步:Fork 想要提交贡献的仓库

第二步,将仓库 clone 到本地

第三步,新建本地工作 branch
第四步:编辑文档进行增删或修改
第五步:提交你的修改
第六步: 推送改动
第七步:提交 Pull request

Last updated



Last updated
export working_dir=<你放置本地仓库的自定义目录>
export user=<你的 Github ID>
mkdir -p $working_dir
cd $working_dir
git clone https://github.com/$user/chaos-mesh.git# 添加上游仓库
cd $working_dir/chaos-mesh
git remote add upstream https://github.com/pingcap/chaos-mesh.gitcd $working_dir/chaos-mesh
git fetch upstream
git checkout master
git rebase upstream/mastergit checkout -b new-branch-namegit status # 查看修改的文件
git add <修改的文件路径> # 如果你想提交所有的文件修改,可使用 `git add .`
git commit<改动的文件夹/子系统>: <做了什么改动>
<空一行>
<为什么做这写改动>
<空一行>git fetch upstream
git rebase upstream/mastergit push -u origin <new-branch-name>