1.4 贡献者协作

准备工作: 如果你没有github账号, 您需要申请一个Github账号, 接下来可以继续下一步.

1.4.1 Fork 代码

  1. 访问 https://github.com/douyu/jupiter1.4 贡献者协作 - 图1
  2. 点击 “Fork” 按钮 (位于页面的右上方)

1.4.2 Clone 代码

  1. git clone https://github.com/<your-github-account>/jupiter
  2. cd jupiter
  3. git remote add upstream 'https://github.com/douyu/jupiter'

1.4.3 创建 feature 分支

  1. git checkout -b feature/my-feature

1.4.4 同步代码

  1. git fetch upstream
  2. git rebase upstream/master

1.4.5 提交 commit

  1. git add .
  2. git commit
  3. git push origin my-feature

1.4.6 提交 PR

  1. 访问 https://github.com/douyu/jupiter,
  2. 点击 "Compare" 比较变更并点击 "Pull request" 提交 PR