1. fork中央仓库到自己的账号
  2. clone fork的个人仓库到本地
  3. git remote add upstream https://github.com/maintainer/repo 添加远程,通常我们命名为upstream
  4. git checkout -b bugfix 创建分支
  5. do something
  6. git fetch upstream 更新远程仓库
  7. git rebase upstream/master 如果有 unstaged changes 需要先git stash
  8. git diff 检查修改内容准备提交
  9. git add .
  10. git commit -m "bugfix: do something"
  11. git push origin bugfix -u 推送分支
  12. 发起 origin/bugfix -> upstream/master 的pr