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.

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

Currently, inside git-data/repositories/@hashed is where you should be expecting the files. The hased git folder does not show your files directly but only the files for the git repo, which means you cannot and should not change your usual files in that folder. You can get the content of that folder by running: git clone path/to/your/hashed.git, make the changes and push them back.