Git:fatal: ‘upstream‘ does not appear to be a git repositoryfatal: Could not read from remote repos
Posted 柳鲲鹏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git:fatal: ‘upstream‘ does not appear to be a git repositoryfatal: Could not read from remote repos相关的知识,希望对你有一定的参考价值。
- 具体命令与错误
$ 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.
- 原因
你是fork的库。而源已经改变了。
- 解决办法
加上源库
$ git remote add upstream https://github.com/openjdk/jdk8u
$ git fetch upstream
以上是关于Git:fatal: ‘upstream‘ does not appear to be a git repositoryfatal: Could not read from remote repos的主要内容,如果未能解决你的问题,请参考以下文章
git fatal: Paths with -a does not make sense.
执行git命令时出现fatal: 'origin' does not appear to be a git repository错误
执行git命令时出现fatal: 'origin' does not appear to be a git repository错误
git fatal: branch ‘master‘ does not exist
GitHub# fatal: 'origin' does not appear to be a git repository
fatal:'origin' does not appear to be a git repository fatal:Could not read from remote repos