git - 远程:在 mac 终端中找不到存储库错误
问题描述
我是 git 新手。我有一个私人仓库,现在我想将本地仓库的更改推送到远程仓库。但是,我收到一个错误:
remote: Repository not found.
fatal: repository 'https://github.com/co-csp/csm.git/' not found
什么可能导致这些错误,请帮助我如何解决它,我正在使用Mac 终端。我的用户名是github 个人资料中的john2git config user.name
,git config user.username
两者都给出john2
,所以用户名似乎正确......
解决方案
如果您正在使用私有存储库,请执行以下操作:
- git 远程 rm 起源
- git 远程添加源 https://user@github.com/co-csp/csm.git
- git 克隆 https://user@github.com/co-csp/csm.git
这应该会提示您输入 GitHub 密码,并且应该如下所示。
克隆到“csm”...“https://user@github.com”的密码:
推荐阅读
- python - Google Colab:迭代此目录时,For Loop 拒绝按顺序进行
- openmdao - 在 Dymos 中保存数据会更改优化和仿真结果
- php - 未找到环境变量:“DATABASE_URL”(Symfony 5)
- django - Django - 更改 ModelForm 中默认的无效电子邮件错误消息
- vue.js - VueJS 和 ElectronJS | 当我在组件中导入 ipcRenderer 时,VueJS 完全停止渲染
- php - .htacces 重写如果 cookie 值
- c# - 定位项目控制项目在画布上
- angular - 安装角材
- python - 尽管安装了 keras-rl2,但未解决导入“rl.agents”?
- pycaret - pycaret 多类分类返回数字,如何获取标签?