git - 尝试拉取并推送到本地服务器,但 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 拉到我的本地笔记本电脑上,似乎如果我指定它应该去哪个端口,git 将无法正确读取 repo 位置,从而导致 repo 不成立。我也尝试过使用 http://,但也发生了类似的事情。有没有办法让 git 知道哪一部分是 repo 哪一部分是 ip 地址和端口号?
解决方案
推荐阅读
- powershell - 使用 Get content 或 Import-CSV 读取 csv 中第二行的第一列
- node.js - 无法使用 passportjs 和 cookie-session 将用户序列化到会话中
- r - dplyr::rename_at 给出错误“必须评估列位置或名称”
- three.js - ThreeJS:白色PNG图像加载为纹理,用作材质并渲染为平面具有灰色边缘
- python - 使用 word2vec 进行监督分类
- search - Visual Studio Code:在文件中搜索但排除文件夹
- c# - C# 标签不会在计时器上更新
- go - 检查来自 os.Remove 的错误消息
- javascript - react-native `keyboardShouldPersistPanGesture` 事件,可防止键盘在快速滑动事件时关闭
- vba - 在列中的单元格的文本和数字之间插入空格