我搜索了一会儿,但我无法找到解决问题的方法.
我有一个服务器,我可以通过ssh连接到用户名git
和本地git存储库.
现在我想将本地存储库推送到服务器上新创建的存储库.
这是我做的:
/home/git/test.git
git remote add test ssh://git@serverIp:/home/git/test.git
git push test master
我总是得到
fatal: could not read from remote repository
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
我正在使用本地Windows 7机器,并希望上传到Linux服务器.
我可以通过ssh与git
用户登录.我也尝试以root
相同的结果作为用户(使事情工作一次).
我永远不会被问到ssh password
.
我真的不知道我做错了什么.
在你称之为副本之前,我搜索了很多这个问题,似乎没有人谈论同样的问题.
更新: