相关疑难解决方法(0)

Git Push ERROR:未找到存储库

我有一个很奇怪的问题gitgithub.当我尝试推动时,我得到:

git push -u origin master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

我添加了遥控器:

git remote add origin git@github.com:account-name/repo-name.git
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

git github git-push

306
推荐指数
33
解决办法
37万
查看次数

Android Studio - 推送失败:致命:无法从远程存储库读取

我在Android Studio上有一个git项目,在BitBucket上有一个遥控器,我将其更改为使用SSH而不是HTTPS.我可以使用Atlassian的SourceTree使一切工作,但是每次我尝试推动项目时,它都会在Android Studio中使用

推送失败:致命:无法从远程存储库读取.

有没有人知道可能发生的事情?

git bitbucket intellij-idea android-studio

56
推荐指数
5
解决办法
5万
查看次数

带有https错误的git clone - 致命:找不到存储库

我分叉了一个私人存储库,我被邀请进行协作,但每次尝试使用HTTPS进行克隆时,都会收到以下错误消息:

$ git clone https://github.com/usernamex/privat-repo.git
cloning into 'privat-repo'...
Username for 'https://github.com':usernamex
Password for 'https://usernamex@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/usernamex/privat-repo.git/' not found
Run Code Online (Sandbox Code Playgroud)

Note: 'usernamex' and 'privat-repo' are just examples


这是我尝试过的一些没有成功的事情:

  • 验证了URL的有效性 - 检查拼写和大小写.我可以通过单击download ZIP按钮访问repo URL并通过浏览器下载其内容.
  • 要求所有者克隆我的叉子 - 他克隆我的叉子没有问题但是我做了.
  • 联系GitHub支持......
  • 每GitHub的支持,清除缓存的凭据 -这是由该系统要求我的用户名和密码,用事实证实了git clonegit push.事实上,我可以在我的帐户中克隆并推送其他(公共)存储库.
  • 通过GitHub的HTTPS克隆错误指南,但"使用SSH代替"除外,因为这并没有真正解决这个问题.
  • 在stackoverflow.com中查看了类似的问题 - 尝试了大多数建议的答案(见上文).

我通过终端在mac上运行git 2.10,正如我所提到的,我对HTTPS的解决方法不感兴趣(例如:SSH或GitHub桌面).

任何想法为什么会这样?

git https github git-clone

9
推荐指数
1
解决办法
1万
查看次数

Pod 安装无权访问私有仓库,但 git clone 等在同一个仓库上工作

我们有一个有私人回购的项目。我可以尽可能访问这个 repo git clone,等等。

但是,pod install在同一个 repo 上总是询问我的登录凭据,收到以下消息:

remote: Repository not found.
fatal: Authentication failed for 'https://github.com/TEAM/Pod.git/'
Run Code Online (Sandbox Code Playgroud)

我正在使用 ssh 连接。我不认为这个问题与此有关,就像我提到的那样,我可以克隆/拉/等。成功地。

还值得注意的是,团队中的另外两个人能够pod install并且pod update没有任何问题。

我还擦除了我的凭证 osxkeychain。

想法?我的想法不多了。


添加了详细信息:

我可以在 Podfile 中安装 pod,但这是针对我们正在创建的 Cocoapod,我遇到问题的 pod 是该 pod 的依赖项。因此在 Podfile 中,我们已经把

#source 'https://github.com/TEAM/PodSpecs.git'
#source 'git@github.com:TEAM/PodSpecs.git'
Run Code Online (Sandbox Code Playgroud)

其中只有一个是未注释的(但都不对我有用——尽管两者都对他们有用)。

然后在 Podspec 中我们有

s.source = { :git => 'https://github.com/TEAM/PodSpecs.git'}
Run Code Online (Sandbox Code Playgroud)

我们甚至尝试过:

s.source = { :git => 'git@github.com:TEAM/PodSpecs.git'}
Run Code Online (Sandbox Code Playgroud)

我还执行了以下命令并验证了 repo 中的存在./cocoapods/repos

pod repo add Pod git@github.com:TEAM/PodSpecs.git
Run Code Online (Sandbox Code Playgroud)

git github ios cocoapods

9
推荐指数
1
解决办法
6139
查看次数

如何在TortoiseGit上更改GitHub帐户

当我要推送时,我得到了拒绝的许可

我将在TortoiseGit上更改GitHub帐户,因为当前帐户没有推送权限。

错误:[远程:拒绝(GitHub帐户)对(存储库)的权限]

有什么方法可以更改TortoiseGit上的GitHub帐户吗?

git github tortoisegit

4
推荐指数
2
解决办法
8842
查看次数