Merging the upstream repository into the fork

如何在 git 里合并上游仓库的更新?这里是一个 GitHub 的文档, https://help.github.com/articles/merging-an-upstream-repository-into-your-fork/,关于对 fork 进行更新。

记录一下,备忘。

o 切换到 master 分支:

git checkout master

o 从 upstream repository 更新下来:

git pull https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git master

o 更新远程 repository:

git push origin master

更新后,对于 bugfix 或者 new feature 的开发,单独创建个分支出来即可。

Read More: