Importing local file based git repositories?


I just installed the Docker version of gogs and now I have some local (Non hosted) git repositories that I would like to import. Is there a simple way to do this? For example copying the repository to the owner account root directory and having gogs auto detect it?

I have a more detailed description / example question here:


First, you need to create the repository in Gogs. Let’s say:

After, you just need to add the url as remote and push:

git remote add origin
git push origin master

Are you familiar with GitHub or similar? This is no different than GitHub.


1 Like

Thanks! That got me over the hump :). I was having some issues with the installation, but it’s all working now:

1 Like