Github 使用基本流程

  • 首先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
相关文章
相关标签/搜索