Warm tip: This article is reproduced from stackoverflow.com, please click
git gitlab

Modify git repository directly on gitlab server

发布于 2020-04-10 10:18:56

I am importing a bigger git repository (120GB) and need to perform certain operations on this by using a script. The repository is now checked in on the GitLab server.

Due to dispace and avoiding unncessary copies, can I modify the git repository directly on the GitLab server, e.g. via SSH? I am at the moment the only user. I just want to avoid, I bypass any internal caching of GitLab they might have done on top.

P.S. Don't worry, the GitLab server it's not a production system yet ;-)

Questioner
Daniel Stephens
Viewed
46
Chris 2020-02-01 23:25

New answer

GitLab almost certainly uses bare repositories on the server. If you want to modify the contents of your repository directly on your server you can try cloning a copy to the local filesystem and working on it there.

Note that your repo is quite large and there are known performance issues on large repos. See


Original answer follows.

GitLab includes a basic online IDE.

I encourage you to read that whole page, but you can get started by clicking on the Web IDE button that's displayed when you're looking at a file or a folder. Editing and committing is fairly intuitive.

Having said that, for anything beyond fixing typos I still recommend cloning the repository to a development machine and working there. A proper IDE gives more features, lets you run your tests before committing, and lets you commit multiple changed files at once as a logical, atomic commit.