Git 合并 Fork 的仓库的最新代码

    # 拉取原仓库代码
    git remote add upstream fork 的仓库地址
    git pull upstream
    # 将原仓库代码合到自己仓库
    git merge upstream/master
    # 推送到自己仓库
    git push

 

本文转载自:https://blog.csdn.net/qq_15071263/article/details/120155024;

posted @ 2022-08-05 10:16  本溢  阅读(120)  评论(0)    收藏  举报