# 配置 remote 指向上游仓库
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
# 从上游获取
git fetch upstream
# 切回去自己的分支
git checkout master
# 合并到自己的分支上
git merge upstream/master
# push 啦
git push
https://help.github.com/articles/syncing-a-fork/
# GitHub fork
# git clone 自己 fork 后的仓库
git clone https://github.com/YOU/YOUR_REPOSITORY.git
# 新建自己的功能分支
git checkout -b new-feature
# 完成开发后提交到功能分支
git add xxx
git commit -m "feat: finish xxx"
# 推送到自己的仓库
git push origin new-feature
# 在 GitHub 页面上发起 PR