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



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

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

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

如何解决。

我想您的远程命名源不引用 opehshift 存储库。
类型:

git remote -v

如果远程存储库的 url 错误,请将其更改为:

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

另请参阅OpenShift Online入门文档中的"使用Git存储库",了解rhc特定命令。

最新更新