微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

git 更新fork的远程仓库

1、添加远程仓库到本地remote分支

git remote add upstream [email protected]:apache/flink.git # 远程仓库地址

2、查看当前仓库的远程分支

git remote -v
origin  [email protected]:springMoon/flink.git (fetch)
origin  [email protected]:springMoon/flink.git (push)
upstream        [email protected]:apache/flink.git (fetch)  # 远程分支
upstream        [email protected]: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 <[email protected]>
Date:   Tue Aug 13 15:54:59 2019 -0700

    [hotfix][doc] remove two obsolete Hive doc files

commit f33a6f0fd6d46d666d95707ac320115ada21cb0f
Author: Rui Li <[email protected]>
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

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐