【问题标题】:How to update a fork on github [duplicate]如何在 github 上更新 fork [重复]
【发布时间】:2015-09-14 18:26:51
【问题描述】:

我在 github 上创建了一个 repo 并更改了一些内容。 最初的 repo 已经提交了几件事情。 如何在不重新分叉和撤消所有更改的情况下更新我的分叉?

【问题讨论】:

    标签: git github


    【解决方案1】:

    从您本地项目文件夹中的终端...(前提是您有configured the remote for your fork

    git fetch upstream
    git checkout master
    git merge upstream/master
    

    (请参阅 github Syncing a fork docs 了解更多信息)

    【讨论】:

      猜你喜欢
      • 2012-11-04
      • 2012-11-11
      • 2017-07-14
      • 2012-12-15
      • 2012-02-27
      • 1970-01-01
      • 2016-08-10
      • 2018-03-03
      • 1970-01-01
      相关资源
      最近更新 更多