在远程服务器上设置git

在远程服务器上设置git,git,github,debian,Git,Github,Debian,我有一个Debian7(Wheezy)(64位版本)VPS,我想在上面安装git并将其用作远程存储库。 为了做到这一点,我遵循这一点,我认为我得到了一切,因为它应该是 现在,我在本地计算机上有一个项目,其中包含一些文件,因此我想将它们推送到存储库中,我尝试了以下命令: git-init&&git-remote-add-origingit@xx.xx.xx.xx:my project.git 现在,当我尝试使用命令从本地计算机推送某些内容时: git推送原始主机 然后输入git用户的密码,我会得到

我有一个Debian7(Wheezy)(64位版本)VPS,我想在上面安装git并将其用作远程存储库。 为了做到这一点,我遵循这一点,我认为我得到了一切,因为它应该是

现在,我在本地计算机上有一个项目,其中包含一些文件,因此我想将它们推送到存储库中,我尝试了以下命令:
git-init&&git-remote-add-origingit@xx.xx.xx.xx:my project.git

现在,当我尝试使用命令从本地计算机推送某些内容时:
git推送原始主机
然后输入git用户的密码,我会得到以下错误:

fatal: 'my-project.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.

URL
git@xx.xx.xx.xx:my project.git
是指服务器xx.xx.xx上用户
git
的主目录中的目录
my project.git
。是这样吗?你能用
ssh列出目录吗git@xx.xx.xx.xxls my project.git
?对于您的遥控器,您是否将其设置为
git@xx.xx.xx.xx:my project.git
git@xx.xx.xx.xx:/path/on/server/to/my project.git