【问题标题】:Cannot update sourcecode from remote repository to local repository无法将源代码从远程存储库更新到本地存储库
【发布时间】:2020-04-21 16:41:39
【问题描述】:

我尝试通过 git 命令将源代码从远程仓库更新到本地仓库:

$git pull origin dev
The terminal has noticed:
From https://github.com/AAA/BBB
 * branch            dev        -> FETCH_HEAD
Already up to date.

但是源代码没有更新。
我该如何解决这个问题?

【问题讨论】:

    标签: github git-pull


    【解决方案1】:

    您是否尝试过确认git remote -v 并查看它是否指向正确的原点?

    否则设置远程原点 git remote set-url origin <remote-repo-url>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-26
      • 2016-04-28
      • 1970-01-01
      • 2013-04-13
      • 1970-01-01
      • 2015-04-14
      • 2011-09-16
      • 2021-06-11
      相关资源
      最近更新 更多