git - 从上游获取 fork repo 失败
问题描述
我对 GitHub 存储库做了一个分支并做了一些更改,现在我需要针对原始存储库的主服务器重新设置它
https://github.com/kubernetes/ingress-nginx
我试过了
git remote add origin git@github.com:kubernetes/ingress-nginx.git
git fetch upstream
我得到了一个错误
远程:未找到存储库。致命:找不到存储库“ https://github.com/kubernetes/ingr/ ”
我不明白为什么repo cut的后缀以及如何克服它,我只需要重新针对master
我做了这个步骤
我也试过
git remote set-url origin git@github.com:kubernetes/ingress-nginx.git
和
git remote add upstream https://github.com/kubernetes/ingress-nginx.git
和git fetch upstream
这没有帮助
解决方案
我认为最后两个命令应该是可行的,如果不试试下面检查出了什么问题
mkdir /tmp/fetchtest && cd /tmp/fetchtest
git init
git remote add upstream https://github.com/kubernetes/ingress-nginx.git
git fetch
推荐阅读
- react-native - 从 epubjs-rn 从 CFI 位置抓取文本
- java - 在实体声明中使用 Hibernate OGM 和 MongoDB 时出现异常
- angular - 如何使用多个 ng 模板创建 Angular 6 组件?
- npm - 运行 `npm install` 时保留符号链接
- vue.js - 将图像上传到 Firebase 商店后设置 Vuetify 循环进度条值
- haskell - 在请求之间共享 http 管理器
- optimization - 如何提高密码查询的运行时间
- windows - 通过bat文件在ansicon控制台打开jar文件
- playframework - 如何将 mvc.play.Result 转换为 JsonNode 或 String
- android - android上的Nativescript蓝牙只是发现一些设备并慢慢做