Skip to content

如何使用GITHUB开发

Julius Yu edited this page Dec 5, 2013 · 6 revisions

##FORK ME

  • 打开 https://github.com/m1688/android-practice, 点击右边的Fork按钮,这会把这个项目克隆到自己的项目列表中
  • 打开自己的主页 https://github.com/xxx/android-practice xxx是自己的用户名
  • git clone git@github.com:xxx/android-practice 使用该命令将Fork的项目拷到本地做为副本
  • git remote -add upstream https://github.com/m1688/android-practice 添加主干源, 当你需要更新主干代码到本地就执行 git pull upstream master

##WORK ON ME

  • 使用eclipse或者android studio导入项目,默认使用utf-8编码
  • 开发需求

##PULL REQUEST

  • 申请 pull request ,打开https://github.com/m1688/android-practice 点击 new pull request
  • 选择 cross forks ,选中你fork的项目,例如 xxx/android-practice
  • 点击申请,查看自己的修改,确认提交pull request

##MERGE PULL REQUEST

  • 目前大家都有merge的权限,所以自己merge request就可以了,但确保可以运行哦
  • 如果有冲突,说明你的提交和主干冲突,更新主干到自己的项目(具体看看上面的命令),解决冲突再提交申请PULL REQUEST
Clone this wiki locally