【发布时间】:2018-11-08 05:14:18
【问题描述】:
我拿了一个 master 的 fork 并且 master 收到了一些更新,同时我现在想把它拉到我的 fork 中。所以我所做的是:
将分叉克隆到本地磁盘,
进入目录并使用git remote add upstram http://xx.xxx.xxx.xxx:pppp/path/to.git 将主服务器添加为上游存储库。然后git fetch upstream 给了我:
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
而且我的磁盘上也确实有该主存储库的克隆,因此我确定具有读取权限。这里有什么问题?
谢谢!
【问题讨论】:
标签: git master upstream-branch