github提交pull request的流程

Posted by zz on August 7, 2019

github上给他人项目做贡献,提交pull request的流程

  1. 在他人项目页面fork他人项目
  2. git clone下载项目到本地
  3. 将他人项目设为upstream远程库:
    git remote add upstream https://github.com/guoyunsky/Markdown-Chinese-Demo
  4. 拉取upstream git fetch upstream
  5. 建立提交分支 git co -b spin upstream/master
  6. 修改或应用自己的patch, 产生本地提交
  7. 将分支提交到origin上 git push origin spin:spin
  8. 在github上自己的此分支页面上点击”New pull request”