Skip to content

Commit 27fe891

Browse files
authored
Update README.md
1 parent 5566ab4 commit 27fe891

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,29 @@ compile 'com.github.binarywang:weixin-java-cp:2.3.0'
8181
1. 为了便于设置,本项目引入editorconfig插件,请使用eclipse的同学在贡献代码前安装相关插件,IntelliJ IDEA则自带支持,无需额外安装插件。
8282
1. 本项目可以采用两种方式接受代码贡献:
8383

84-
1. 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程,因此在发起Pull Request的时候请选择develop分支。
85-
1. 另外一种贡献代码的方式就是加入SDK Developers开发组,前提是对自己的代码足够自信就可以申请加入,加入之后可以随时直接提交代码,但要注意对所做的修改或新增的代码进行单元测试,保证提交代码没有明显问题,具体加入方式,请咨询管理员。
84+
 1. 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程,因此在发起Pull Request的时候请选择develop分支,详细步骤参考后文。
85+
1. 另外一种贡献代码的方式就是加入SDK Developers开发组,前提是对自己的代码足够自信就可以申请加入,加入之后可以随时直接提交代码,但要注意对所做的修改或新增的代码进行单元测试,保证提交代码没有明显问题,具体加入方式,请咨询QQ群管理员。
86+
87+
## PR方式贡献代码步骤
88+
* 在 GitHub 上 `fork` 到自己的仓库,如 `my_user/weixin-java-tools`,然后 `clone` 到本地,并设置用户信息。
89+
```
90+
$ git clone [email protected]:my_user/weixin-java-tools.git
91+
$ cd weixin-java-tools
92+
$ git config user.name "yourname"
93+
$ git config user.email "your email"
94+
```
95+
* 修改代码后提交,并推送到自己的仓库。
96+
```
97+
$ #do some change on the content
98+
$ git commit -am "Fix issue #1: change something"
99+
$ git push
100+
```
101+
* 在 GitHub 网站上提交 Pull Request。
102+
* 定期使用项目仓库内容更新自己仓库内容。
103+
```
104+
$ git remote add upstream https://github.com/wechat-group/weixin-java-tools
105+
$ git fetch upstream
106+
$ git checkout develop
107+
$ git rebase upstream/develop
108+
$ git push -f origin develop
109+
```

0 commit comments

Comments
 (0)