首页 > 解决方案 > 尝试拉取并推送到本地服务器,但 git 没有正确读取存储库

问题描述

$ git pull <IP address here>:500/git@gitlab:softwaredev/apps.git
chase@<IP address here>'s password:
fatal: '500/git@gitlab:softwaredev/apps.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.

我的 gitlab 服务器使用 docker 托管在端口 500,我试图将 repo 拉到我的本地笔记本电脑上,似乎如果我指定它应该去哪个端口,gi​​t 将无法正确读取 repo 位置,从而导致 repo 不成立。我也尝试过使用 http://,但也发生了类似的事情。有没有办法让 git 知道哪一部分是 repo 哪一部分是 ip 地址和端口号?

标签: gitgitlab

解决方案


推荐阅读