我有本地工作副本SourceTree。和所有的操作工作得很好,我可以简单的获取,推,拉等通过SourceTree。我只需要在SourceTree中不存在的force push。
我打开终端使git按-f
remote: Repository not found.
fatal: repository 'https://github.com/MyRepo/project.git/' not found
我不确定会有什么问题。
我有本地工作副本SourceTree。和所有的操作工作得很好,我可以简单的获取,推,拉等通过SourceTree。我只需要在SourceTree中不存在的force push。
我打开终端使git按-f
remote: Repository not found.
fatal: repository 'https://github.com/MyRepo/project.git/' not found
我不确定会有什么问题。
当前回答
在Visual Studio中从Github克隆时,点击Github链接上的“浏览存储库”选项,它将要求登录。
其他回答
所以你的url当前看起来如下所示
https://github.com/RevanthM/Log_Monitoring
它应该是这样的
https://RevanthM@github.com/RevanthM/Log_Monitoring
不同的是,在url的开头,我添加了我的github用户名,后面跟着一个@符号。
如果你没有写权限,只有读权限,就会发生这种情况。 如果它是一个私有存储库,您应该被添加为合作者。 检查你的证件是否正确。
Git实际上不会说这些事情,它只会说,你的凭证没有发现回购。
祝你好运。
在我的情况下,我需要在Linux上使用Ctrl + H打开目录来查看隐藏的文档,所以我进入Git配置并在URL中取出。Git。
有时ssh凭证是安装在你的电脑上与github回购通信。 当你设置新的repo:如果你添加了https格式的origin,你的git凭证管理器不能找出repo。
检查产地格式
git remote -v
https格式的来源
origin https://github.com/username/repo_name.git
ssh格式的原点
origin git@github.com:username/repo_name.git
删除https格式的origin
git remote remove origin
添加ssh格式的origin
git remote add origin git@github.com:username/repo_name.git
禁用GIT证书对我有帮助:
git config --global --unset credential.helper