1.fork一个项目,会在自己的git主页新建一个仓库xxx/test;
2.clone到本地:git clone git@github.com:xxxx/first-pr.git;
3.创建特性分支:git checkout -b work gh-pages;
4.修改代码,查看修改:git diff;
5.提交修改后的代码:git add index.html;git commit -m "index change";
6.创建远程分支:git push origin work;
7.切换到github的work分支下,compare查看差别并确认后点击New Pull Request,填写请求信息,提交。