- 首先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分支進行修改。
若是修改過程當中個人庫有了更新,請重複六、七、8步。git
修改以後,首先push到你的庫,而後登陸GitHub,在你的庫的首頁能夠看到一個 pull request 按鈕,點擊它,填寫一些說明信息,而後提交便可。github
SWIFT GUIDEswift
http://swiftguide.cn/ide
https://github.com/numbbbbb/the-swift-programming-language-in-chinesefetch
另一個項目的流程介紹ui
- 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