GitHub贡献代码流程

@bingoogolapple 2015-12-21 16:53:55发表于 bingoogolapple/bingoogolapple.github.io 工具软件开发环境

贡献者

到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