Importing local file based git repositories?

#1

Hi,

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:

TIA,
Ole

#2

First, you need to create the repository in Gogs. Let’s say: your.gogs.com/youruser/yourrepo

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

git remote add origin https://your.gogs.com/youruser/yourrepo
git push origin master

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

Cheers.

#3

Thanks! That got me over the hump :). I was having some issues with the installation, but it’s all working now:
https://github.com/gogits/gogs/issues/3019

1 Like