Gitea is not starting - extract repositories

Hello!

I’m running Gitea version 1.22.4 built with GNU Make 4.3, go1.22.9 : bindata, sqlite, sqlite_unlock_notify on Ubuntu 22.04.5 LTS (GNU/Linux 6.1.90-21 armv7l). I’m having problems starting Gitea due to problems with MariaDB on my server.

I can access the directory where my repositories are stored (folders with .git in the name). I’d like to switch to a simple git server my NAS is offering.

How could I use the .git directories from Gitea to extract the repository files and data so then I can transfer this to non-Gitea git server? What I’m hoping to achieve is to have a folder on my computer with my repo data as if I’ve cloned the git repo – but without the ability to start Gitea and actually cloning it.

Thank you for any help you can provide!

After bit more research I have introduced myself to the concept of “bare git”. Better late than never I suppose.

So what I did was to copy the .git directories to my local computer and cloned them via git clone /path/to/repo.git