Git拉致命错误[无法读取远程存储库]

时间:2014-11-27 07:21:57

标签: git ssh openshift ssh-keys git-bash

我想拉动并将我的代码推送到openshift。 我正在使用Gitbash。 当我拉我错误时:

$ git pull
fatal: '~/git/app.git/' does not appear to be a git repository
fatal: Could not read from remote repository.

请确保您拥有正确的访问权限 存储库存在。

如何解决。

1 个答案:

答案 0 :(得分:1)

我认为你的远程命名来源没有引用opehshift repo 类型:

git remote -v

如果远程仓库的网址错误,请将其更改为:

git remote set-url origin /url/openshift/repo

另请参阅Using the Git Repository文档中的Getting Started with OpenShift Onlinerhc特定命令。

相关问题