我尝试将git存储库的一个分支部署到我的LAMP服务器。 我已经在服务器上初始化了一个Git仓库:
$ ssh user@ip.address
...
user@server.domain [test]# git init
Reinitialized existing Git repository in /home/user/public_html/.../test/.git/
在我的本地仓库中,我添加了远程路径并尝试推送分支:
git remote add test ssh://user@ip.address/public_html/.../test
git push test myBranch
这就是我得到的:
fatal: '/public_html/.../test' 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.
有人可以帮助我或者有更好的方法吗?