git - 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
解决方案
推荐阅读
- javascript - Discord.js 集合;如何从集合中的数组中导航和抓取/计数对象
- c# - IEquatable 和继承
- python - 使用笛卡尔地图上的极坐标计算随机样本点
- vue.js - 带有标签组合的Vuejs v-for循环
- reactjs - React 不会更新另一个页面上的值
- visual-studio-2019 - MS Visual Studio 2019 - 添加新的脚手架项目时崩溃
- mongodb - 如果我不打算授予集群级别角色,我是否应该避免在“管理员”数据库中创建 MongoDB 用户
- javascript - JSON.stringify 替换器 - 如何获取完整路径
- javascript - 如何使用图表 图表弹簧启动有问题?
- error-handling - while 循环中出现不支持的操作数类型错误