我有本地工作副本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
我不确定会有什么问题。
当前回答
执行git远程更新对我来说很有效。
其他回答
〇解决方案
问题,
$ git clone https://github.com/abc/def.git
Cloning into 'def'...
remote: Repository not found.
fatal: repository 'https://github.com/abc/def.git/' not found
解决方案- 卸载凭据管理器-
abc@DESKTOP-4B77L5B MINGW64 /c/xampp/htdocs
$ git credential-manager uninstall
abc@DESKTOP-4B77L5B MINGW64 /c/xampp/htdocs
$ git credential-manager install
它的工作原理……
检查url s.source是否正确。
为我树立榜样
// fail Project>>t<<est
s.source = { :git => '.../Projecttest-iOS', :tag => s.version.to_s }
// success Project>>T<<est
s.source = { :git => '.../ProjectTest-iOS', :tag => s.version.to_s }
在我的情况下,我需要在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
所以你的url当前看起来如下所示
https://github.com/RevanthM/Log_Monitoring
它应该是这样的
https://RevanthM@github.com/RevanthM/Log_Monitoring
不同的是,在url的开头,我添加了我的github用户名,后面跟着一个@符号。