1

I recently installed gitlab on my server, the aim for me is to write scripts on my laptop and easily push them into the server.

I found where data is stored, I left the default value, which is /var/opt/gitlab/git-data/repositories/username, but I can't see my files in there, it seems I can do nothing from my shell session.

Is there a command I should run to assemble files into usable scripts or is there a more graceful way to achieve my goal ?

1
  • 1
    Entering to Gitlab's internal repo storage seems risky and should be done only when is strictly necessary. You should try entering to Gitlab webpage through a browser. There it will show you how to manage repositories, including cloning and pushing, and the vast amount of features Gitlab provides. Commented Jan 24, 2018 at 0:49

1 Answer 1

1

Git is storing your files in its internal (binary) database, called a bare repository. If you want to see those files in their normal text form on the machine hosting the repository, you can clone it locally. This is described in this answer and in the git documentation.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks ! Cloning it locally is a great solution, it will resolve my problem. And again thank you for providing details about git storage system, I was wondering how it was done exactly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.