diff --git a/how_to_use_pull_requests.md b/how_to_use_pull_requests.md index a22aff2..ffc8492 100644 --- a/how_to_use_pull_requests.md +++ b/how_to_use_pull_requests.md @@ -1,3 +1,31 @@ # 就是个教程 -不会的看一下,会的忽略就完事了。 \ No newline at end of file +不会的看一下,会的忽略就完事了。 + +首先将该仓库 `fork` 到自己的仓库 + +![](./img/fork.png) + + +然后在你的仓库中修改该分支 + +`git clone https://github.com/your_user_name/awesome-ouc-cs.git` + +按照 project 的格式加入自己开源项目的索引后提交 + +``` +git add * +git commit -m "some useful message" +git push +``` + +在 `Pull requests` 的页面发起 PR + +![](./img/pull_request.png) + +提交后就可以在主项目的 `Pull requests` 里看到自己发起的 PR,之后等待仓库所有者合并即可。 + +## 参考链接 + +[Pull Request 的命令行管理](http://www.ruanyifeng.com/blog/2017/07/pull_request.html) +[官方文档](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) \ No newline at end of file diff --git a/img/fork.png b/img/fork.png new file mode 100644 index 0000000..aeebed7 Binary files /dev/null and b/img/fork.png differ diff --git a/img/pull_request.png b/img/pull_request.png new file mode 100644 index 0000000..eb7ac07 Binary files /dev/null and b/img/pull_request.png differ