Files
the-swift-programming-langu…/contributing.md
2014-06-16 16:29:05 +02:00

18 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 贡献参考流程
有些朋友可能不太清楚如何帮忙翻译,我这里写一个简单的流程,大家可以参考一下:
1. 首先fork我的项目
2. 把fork过去的项目也就是你的项目clone到你的本地
3. 在命令行运行 `git branch develop` 来创建一个新分支
4. 运行 `git checkout develop` 来切换到新分支
5. 运行 `git remote add upstream https://github.com/numbbbbb/the-swift-programming-language-in-chinese.git` 把我的库添加为远端库
6. 运行 `git remote update`更新
7. 运行 `git fetch upstream gh-pages` 拉取我的库的更新到本地
8. 运行 `git rebase upstream/gh-pages` 将我的更新合并到你的分支
这是一个初始化流程只需要做一遍就行之后请一直在develop分支进行修改。
如果修改过程中我的库有了更新请重复6、7、8步。
修改之后首先push到你的库然后登录GitHub在你的库的首页可以看到一个 `pull request` 按钮,点击它,填写一些说明信息,然后提交即可。