1、添加远程仓库到本地remote分支
git remote add upstream git@github.com:apache/flink.git # 远程仓库地址
2、查看当前仓库的远程分支
git remote -v origin git@github.com:springMoon/flink.git (fetch) origin git@github.com:springMoon/flink.git (push) upstream git@github.com:apache/flink.git (fetch) # 远程分支 upstream git@github.com:apache/flink.git (push)
3、fetch 远程分支
git fetch upstream
4、合并 fetch 的分支到本地master
git merge upstream/master
5、查看log最近更新日志
$ git log commit 9410674e642ab7d10f8b1358faafa93419282fef Author: bowen.li <bowenli86@gmail.com> Date: Tue Aug 13 15:54:59 2019 -0700 [hotfix][doc] remove two obsolete Hive doc files commit f33a6f0fd6d46d666d95707ac320115ada21cb0f Author: Rui Li <lirui@apache.org> Date: Mon Aug 5 12:26:40 2019 +0800 [FLINK-13534][hive] Unable to query Hive table with decimal column Fix the issue that Flink cannot access Hive table with decimal columns. This closes #9390.
6、推送本地master 到远程仓库(自己fork的仓库)
git push origin master