VPS 上的 Gitlab 存储库地址

Address of Gitlab repository on VPS

我在我的 VPS (centos 7) 中安装了 GitLab Enterprise Edition 12.5.4-ee 并创建了一些项目,其中一个用于克隆的 URL 是:

git@xxx.xxx.xxx.xxx:root/ir-module-software.git

在哪里可以找到项目存储库?

我使用了以下命令:

find / -name ir-module-software.git

但是没有找到任何东西。

我看到了 /var/opt/gitlab/git-data/repositories 目录,但没有找到合适的东西(它不是空的)。

谢谢

/var/opt/gitlab/git-data/repositories 是您存储库的正确位置。 Gitlab(和 git)以 "bare" 存储库的形式将您的存储库存储在服务器上。

A bare Git repository is typically used as a Remote Repository that is sharing a repository among several different people. You don't do work right inside the remote repository so there's no Working Tree (the files in your project that you edit), just bare repository data.

当您在本地克隆它时,将其视为 .git 文件夹的内容。

默认情况下,存储库被散列并存储在 /var/opt/gitlab/git-data/repositories/@hashed,要禁用 hash,转到 admin_area->setting->repository->Repository storage 并删除 Use hashed storage

的勾号