Gitlab工作stream程和用户configuration

上下文/信息

我按照官方页面上的说明在Ubuntu 12.04上安装了gitlab: https : //github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md

安装完成后,我可以访问http://machine_ip:3000的Web界面,凭证:

[email protected]

5iveL!FE

在我的机器上,我有以下用户: – git(在本教程中没有设置密码) – gitlab(在本教程中设置auto) – my_username(作为root用户使用的普通用户)

在gitlab的web界面中,当我请求的时候,我在my_username上生成了一个公共的rsa键并粘贴在那里。

然后我开始在/ home / my_username / test中用git init和git remote add origin创build一个存储库,如本教程中所示。 当我试图推动我的提交,我得到以下错误:

 To git@localhost:test.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@localhost:test.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (eg 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details. 

我告诉你所有这些,以更好地理解我试图实现的目标以及我得到的错误消息。

问题

在开发者的机器上,我安装了putty,pageant和puttygen以及msysgit。 我在gitlab的界面中生成了一个与新用户关联的密钥。 此外,我设置GIT_SSH使用plink为了让msysgit使用选美(这是服务的关键连接)。

我可以使用无密码连接到git @ machine_ip,所以密钥被添加到git中的authorized_keys中。

但是,当我尝试克隆与源位置的仓库git @ machine_ip:test.git我收到以下错误信息:

 fatal: 'test.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly 

我不知道我在这里弄错了什么。 我是否应该做一些不同的事情(创build一个新项目,设置不同的存储库,在gitlab中添加一个新用户和他们的密钥)等等。

你能提供一些帮助吗?