Update README.md

This commit is contained in:
Binary Wang
2016-12-23 18:19:52 +08:00
committed by GitHub
parent acfc4016c6
commit 99d9fa7904

View File

@ -90,21 +90,21 @@ compile 'com.github.binarywang:weixin-java-cp:2.4.0'
## PR方式贡献代码步骤 ## PR方式贡献代码步骤
* 在 GitHub 上 `fork` 到自己的仓库,如 `my_user/weixin-java-tools`,然后 `clone` 到本地,并设置用户信息。 * 在 GitHub 上 `fork` 到自己的仓库,如 `my_user/weixin-java-tools`,然后 `clone` 到本地,并设置用户信息。
``` ```bash
$ git clone git@github.com:my_user/weixin-java-tools.git $ git clone git@github.com:my_user/weixin-java-tools.git
$ cd weixin-java-tools $ cd weixin-java-tools
$ git config user.name "yourname" $ git config user.name "yourname"
$ git config user.email "your email" $ git config user.email "your email"
``` ```
* 修改代码后提交,并推送到自己的仓库。 * 修改代码后提交,并推送到自己的仓库。
``` ```bash
$ #do some change on the content $ #do some change on the content
$ git commit -am "Fix issue #1: change something" $ git commit -am "Fix issue #1: change something"
$ git push $ git push
``` ```
* 在 GitHub 网站上提交 Pull Request。 * 在 GitHub 网站上提交 Pull Request。
* 定期使用项目仓库内容更新自己仓库内容。 * 定期使用项目仓库内容更新自己仓库内容。
``` ```bash
$ git remote add upstream https://github.com/wechat-group/weixin-java-tools $ git remote add upstream https://github.com/wechat-group/weixin-java-tools
$ git fetch upstream $ git fetch upstream
$ git checkout develop $ git checkout develop