致命:存储库.......未找到

fatal: repository ....... not found

我已经用这个命令添加了远程仓库 link -

git remote add origin https://github.com/ni8mr/Local-Weather-App/tree/gh-pages

我检查了远程回购版本,它显示来源是我添加的link。

直播 link 来了 - https://github.com/ni8mr/Local-Weather-App/tree/gh-pages

虽然 link 是 运行 或者存储库存在,但我一直收到以下错误 -

fatal: repository 'https://github.com/ni8mr/Local-Weather-App/tree/gh-pages.git/' not found

我该如何解决这个问题?我检查了以前的解决方案,但找不到完美的解决方案。

https://github.com/ni8mr/Local-Weather-App/tree/gh-pages

不是 git 存储库,它只是您的一个分支的网络视图。存储库位于

https://github.com/ni8mr/Local-Weather-App.git

不要只从浏览器地址栏中取出 link,您应该始终在 中使用 URL 克隆或下载: