bash - git fetch upstream master 不工作,怎么回事?
问题描述
所以我想知道上游master是否有问题?我不确定当所有内容都已更新或是否有所不同时是否会发生此错误。
我已经毫无问题地添加了上游链接,使用 $ git remote add upstream https://github.com/udacity/course-collboration-travel-plans.git
现在只想和主人同步
解决方案
当然,您的存储库 URL:https ://github.com/udacity/course-collboration-travel-plans.git给出了 404。您添加的远程没有存储库。
特别是我在您的远程 URL collboration
==>中看到了一个错字collaboration
。因此,应该作为远程添加的正确 URL 是:
https ://github.com/udacity/course-collaboration-travel-plans.git
# Remove previously incorrect remote
$ git remote rm upstream
# Adding correct remote
$ git remote add upstream https://github.com/udacity/course-collaboration-travel-plans.git
希望能帮助到你。
推荐阅读
- excel - 使用返回变量的参数调用方法对象
- r - 在 pycharm 中调试 R 代码:无法运行用户定义的函数?
- java - Java方法签名忽略不等类返回
- ios - IOS trueHeading打开时值不同
- node.js - Express Gateway - 数据组合/聚合是否可能?
- c++ - 如何从派生类实例化基类中的数组?
- javascript - 在 React 中将 HTML 写入 iFrame,获取 [object Object]
- php - /bin/bash - Alfred 3 工作流程未检测到 php
- python - 是否可以在 hmmlearn 中拟合多元 GMHMM?
- bash - cat 或 grep html 文件以查找特定文本