我有一个很奇怪的问题git和github.当我尝试推动时,我得到:
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)
有任何想法吗?
我在Android Studio上有一个git项目,在BitBucket上有一个遥控器,我将其更改为使用SSH而不是HTTPS.我可以使用Atlassian的SourceTree使一切工作,但是每次我尝试推动项目时,它都会在Android Studio中使用
推送失败:致命:无法从远程存储库读取.
有没有人知道可能发生的事情?
我分叉了一个私人存储库,我被邀请进行协作,但每次尝试使用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
这是我尝试过的一些没有成功的事情:
download ZIP按钮访问repo URL并通过浏览器下载其内容.git clone和git push.事实上,我可以在我的帐户中克隆并推送其他(公共)存储库.我通过终端在mac上运行git 2.10,正如我所提到的,我对HTTPS的解决方法不感兴趣(例如:SSH或GitHub桌面).
任何想法为什么会这样?
我们有一个有私人回购的项目。我可以尽可能访问这个 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) 
我将在TortoiseGit上更改GitHub帐户,因为当前帐户没有推送权限。
错误:[远程:拒绝(GitHub帐户)对(存储库)的权限]
有什么方法可以更改TortoiseGit上的GitHub帐户吗?