Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Depending on version, GitLab uses one several storage types.

Legacy storage (default for GitLab < 10.0) type uses this naming scheme:

No Format

Since version 10.0 GitLab uses hashed storage with the following structure:

No Format

This hash is SHA-256 of the project ID. To find the project ID to to Setting > General:

Project settingsImage Modified

For example, in our case the project ID is “1”. So to find a hash of it run:

Code Block
$ echo -n 1 | sha256sum 

Hence for our example the repository path is

No Format

If we were using Legacy Storage, the path for the example repository path would be:

No Format

where username is name of the user in GitLab (“root” for our example).