首页 > 解决方案 > Git远程到自己的服务器

问题描述

我有自己的远程服务器,我想将我在代码中所做的更改直接推送到其中。我已经在远程服务器中启动了 git 并尝试通过 SSH 访问。虽然 SSH 似乎可以正常工作,但 git 在尝试 git push 时会抛出一个错误。

fatal: '/home/admin/web/site.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.

但是存储库存在,目录已创建,我正在尝试由这些目录的用户所有者访问。我完全被困住了。你能指导我哪里有问题吗?

我的 git 远程请求看起来像

admin@192.168.0.1:/home/admin/web/site/public_html/.git

标签: gitdebian

解决方案


推荐阅读