New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to migrate git repositories to gogs? #881

Closed
wanghm opened this Issue Jan 30, 2015 · 6 comments

Comments

3 participants
@wanghm

wanghm commented Jan 30, 2015

We have a git server with over 200 repositories, Only ssh protocol is supported now.
I just setup gogs server, and want to migrate the repositories to gogs.
Can you please tell me how to do this?

I check migration feature of gogs, it seems like the source repositories must be access by http(s).

@wanghm wanghm closed this Jan 30, 2015

@Unknwon

This comment has been minimized.

Member

Unknwon commented Jan 30, 2015

Hmm..? Why did you close the issue?

@wanghm

This comment has been minimized.

wanghm commented Jan 31, 2015

Just wondered if here is for QA.
Appreciate it if someone can answer me.

@wanghm wanghm reopened this Jan 31, 2015

@Unknwon Unknwon added the question label Jan 31, 2015

@Unknwon

This comment has been minimized.

Member

Unknwon commented Jan 31, 2015

Sure, currently Gogs only supports HTTP/HTTPS clone because it can be done directly through web interface.

It is possible to add support for clone by SSH, but requires user to do something like generate a public key for the server that runs Gogs, and have correct permission on remote SSH server. Then, when Gogs do git clone ... will be successful.

You can turn this into a feature request if that's what you wish to.

@wanghm

This comment has been minimized.

wanghm commented Feb 2, 2015

Thanks, it' not important.
I can do migration by other ways(create repositories and copy directories)

@wanghm wanghm closed this Feb 2, 2015

@Unknwon

This comment has been minimized.

Member

Unknwon commented Feb 2, 2015

@wanghm no problem!

@renard

This comment has been minimized.

renard commented Oct 13, 2016

This topic is quite old but it might interest some people.

Obviously migrating a few repositories is pretty straightforward, you can clone and push them.

Is there a procedure to migrate more than just repositories, such as messages, PR, issues, credentials etc.?

Thanks

ethantkoenig pushed a commit to ethantkoenig/gogs that referenced this issue Feb 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment