【发布时间】:2013-02-19 13:06:31
【问题描述】:
我最近注册了一个 Digital Ocean 帐户,但在为我的项目设置远程仓库时遇到了麻烦。
我已经在本地设置了 SSH 密钥并成功地将它们复制到服务器,因此我可以在没有密码的情况下进行 SSH,但是我收到以下错误:
fatal: '/projects/website/.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
(32768)
这是我的远程仓库的地址(IP 地址已更改)
ssh://root@123.45.678.90/projects/website/.git
在根文件夹中创建记录“/projects/website/”。我已经尝试在地址前加上“root”,但这并没有解决问题。
远程仓库定义为 git 仓库,我尝试创建默认仓库并拉取,以及 --bare 仓库并推送 - 均未奏效。
我已询问 DO 支持团队,但他们的响应速度很慢(可能是因为我们处于 2 个不同的时区)。
我现在有点卡住了,因为我不确定问题出在哪里?
提前致谢。
【问题讨论】:
标签: git ubuntu ssh digital-ocean