docker_practice/.github/CONTRIBUTING.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

2017-01-12 05:25:22 +00:00
## 如何贡献项目
2017-11-24 03:31:22 +00:00
* 在 [GitHub](https://github.com/yeasy/docker_practice/fork) 上 `fork` 到自己的仓库,如 `docker_user/docker_practice`,然后 `clone` 到本地,并设置用户信息。
2017-01-12 05:25:22 +00:00
```bash
2017-01-12 05:25:22 +00:00
$ git clone git@github.com:docker_user/docker_practice.git
$ cd docker_practice
$ git config user.name "yourname"
$ git config user.email "your email"
```
* 修改代码后提交,并推送到自己的仓库。
```bash
2017-01-12 05:25:22 +00:00
$ #do some change on the content
$ git commit -am "Fix issue #1: change helo to hello"
$ git push
```
2017-11-30 14:03:03 +00:00
* 在 [GitHub](https://github.com/yeasy/docker_practice/pulls) 上提交 Pull request添加标签并邀请维护者进行 Review。
2017-01-12 05:25:22 +00:00
* 定期使用项目仓库内容更新自己仓库内容。
2017-11-24 03:31:22 +00:00
```bash
2017-01-12 05:25:22 +00:00
$ git remote add upstream https://github.com/yeasy/docker_practice
$ git fetch upstream
$ git checkout master
$ git rebase upstream/master
$ git push -f origin master
```
## 排版规范
本开源书籍遵循 [中文排版指南](https://github.com/mzlogin/chinese-copywriting-guidelines) 规范。