Where are repo files stored?

Hi, I can’t find folder where gitlab store repository files …

I try everything ( find, config etc )
I search in
/var/opt/gitlab/git-data/ <- here are just git folder/files no repository files
/home/git/ <- this folder do not exist in my instalation.

I use Debian with
Gitlab10.5.5-ee
GitLab Shell 6.0.3
GitLab Workhorse v3.6.0
GitLab API v4
Ruby 2.3.6p384
Rails 4.2.10
postgresql 9.6.5

Hi Fires04,

I think the path of your git repository data has been changed so you need to check the /etc/gitlab/gitlab.rb file. And you can easily check where the git-data repositories are stored.

I request you to follow the below link so that you can easily rectify the problem and resolve it.
https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory

i hope the above step will help you.

Thanks!

1 Like

Hi, I do not change nothing in installation … I check config rb but there is no change to path. If I open default path there is just repo git I think. Where are repo files, I looking for plain repo files because I want sometimes manualy go to repo folder and made some git commands in it…

Thanks a lot for help. Below is my repo folder content…

On that screen it’s a proper path to remote git repository. But you won’t find there any files you’re looking for, because it’s a bare repository. What revision would you expect to find there? What operations would you like to make there? If you want to push any changes (create/modify/delete files/branches/tags or anything else) you should do it locally and then push it to remote repo.

More details about bare repositories you can find here:
http://www.saintsjd.com/2011/01/what-is-a-bare-git-repository/

1 Like