在你贡献任何代码之前,请阅读此部分。
- 提交 PR|MR 之前 rebase 最新的主分支并解决可能的冲突
- 保持你的 RP|MR 中的 commits 清晰整洁
- 在标题和正文中清楚的描述你的 PR|MR 的目的和改动
步骤:
- fork 这个库
- clone 你 fork 出来的库
- 创建一个 feature 分支 (
git checkout -b my-new-feature
) - commit 你的修改 (
git commit -am 'Add some feature'
) - push 这个 feature 分支到远端 (
git push origin my-new-feature
) - 从这个分支发起一个 Pull Request | Merge Request
关于 rebase:请自行参阅 git 官方文档,rebase 的目的是为了保持提交记录的整洁。
Read this part before you contribute any code.
- Rebase the newest master branch to your PR branch before make your pull request
- Keep the commits in your PR|MR clean and simple
- Descripe your PR|MR's purpose and detail in title and content
Steps:
- Fork it
- Clone your fork repo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request | Merge Request
About rebase: Do some search to figure out what the git rebase
is if you don't know it. The rebase command is helped to keep commits tree clean.