【发布时间】:2013-06-04 07:55:16
【问题描述】:
我正在尝试将我的第一个 Git 存储库提交到我在 debian-VM 上设置的 gitlab 实例。一切都将通过本地网络发生。创建新仓库后,以下命令在 gitlab 中显示。
mkdir test
cd test
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@10.200.3.248:1337:Matt/test.git
git push -u origin master
输入git push -u origin master后会出现这种情况:
git@10.200.3.248's password:
fatal: '1337:Matt/test.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 的端口上吗? Gitlab 可通过端口 617 访问,因此我可以通过 http://xxx.xxx.xxx.xxx:617/Matt/test 访问 GUI
我输入的密码似乎是正确的,因为错误的密码最终会出现“权限被拒绝”消息。 OT:我不知道为什么要输入密码,因为我已经生成并添加了 ssh-keys,如 gitlab 中所述,但这是另一个问题。
【问题讨论】: