同步更新 github上fork别人的项目的最新提交
发布日期:2021-06-30 12:28:10 浏览次数:4 分类:技术文章

本文共 366 字,大约阅读时间需要 1 分钟。

1 github官网平台操作

  1. 打开自己的仓库,进入code
  2. 点击Pull request创建
  3. 选择base repository,选择head repository,点击Create pull request
  • 填写创建信息。
  • 点击Merge pull request 合并从源fork来的代码。

2 git命令行操作

确定是否建立主repo远程源

git remote -v

如果里面只能看到你自己的两个源(fetch 和 push),那就需要

添加主repo的源

git remote add upstream URL git remote -v

然后你就能看到upstream了。

因为我这里已经有了,所以直接下一步操作

与主repo合并

git fetch upstream git merge upstream/master

转载地址:https://javaedge.blog.csdn.net/article/details/109108627 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:一文讲明Dubbo Remoting模块
下一篇:电商互联网如何做微服务治理(SOA governance)?

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年05月05日 15时03分56秒