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