到github上fork
git clone
git remote add upstream xxxxxxxxxxxx
git checkout -b xxx-feature
git commit
git checkout master
git pull upstream master
git checkout xxx-feature
git rebase master
git push origin xxx-feature
到github上发布pull request
git remote add downstream xxxxxxxxxxxxxx
git checkout -b test-xxx-feature
git pull downstream xxx-feature
然后测试是否有问题
git checkout master
git merge test-xxx-feature
git push origin master
git checkout master
git push origin :xxx-feature
git branch -D xxx-feature
git pull upstream master