Open bingoogolapple opened 8 years ago
到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 push origin :xxx-feature
git branch -D xxx-feature
git pull —rebase upstream master
git rebase -i master 压缩多个版本,将pick改为s
git rebase -i HEAD~2
贡献者
到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