小编mat*_*mat的帖子

Git"似乎不是一个git存储库"ip和端口而不是域?

我正在尝试将我的第一个Git存储库提交给gitlab实例,我已经在debian-VM上设置了它.一切都将通过本地网络发生.创建新的repo后,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
Run Code Online (Sandbox Code Playgroud)

进入后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.
Run Code Online (Sandbox Code Playgroud)

问题可能是Git运行的端口吗?Gitlab可通过端口617访问,因此我可以通过http://xxx.xxx.xxx.xxx:617/Matt/test访问GUI

我输入的密码似乎是正确的,因为错误的密码将以"权限被拒绝"消息结束.OT:我不知道为什么要输入passwd,因为我已经生成并添加了ssh-key,如gitlab中所述,但这是另一个问题.

git gitlab

18
推荐指数
1
解决办法
2万
查看次数

标签 统计

git ×1

gitlab ×1