- 首先fork一个项目
- 把fork过去的项目也就是你的项目clone到你的本地
- 在命令行运行 git branch develop 来创建一个新分支
- 运行 git checkout develop 来切换到新分支
- 运行 git remote add upstream https://github.com/numbbbbb/the-swift-programming-language-in-chinese.git 把我的库添加为远端库
- 运行 git remote update更新
- 运行 git fetch upstream gh-pages 拉取我的库的更新到本地
- 运行 git rebase upstream/gh-pages 将我的更新合并到你的分支
- 这是一个初始化流程,只需要做一遍就行,之后请一直在develop分支进行修改。
如果修改过程中我的库有了更新,请重复6、7、8步。
修改之后,首先push到你的库,然后登录GitHub,在你的库的首页可以看到一个 pull request 按钮,点击它,填写一些说明信息,然后提交即可。
SWIFT GUIDE
另外一个项目的流程介绍
- Fork it ( https://github.com/Clipy/Clipy/fork )
- 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 a new Pull Request