[GH-ISSUE #22] Migrate repositories from a HTTP URL, local disk or SSH URL #10

Open
opened 2026-02-16 12:57:47 -05:00 by yindo · 6 comments
Owner

Originally created by @lunny on GitHub (Apr 26, 2019).
Original GitHub issue: https://github.com/go-gitea/tea/issues/22

If we can implement a sub command migrate, that will be helpful.

# migrate from a http URL
tea --login=try migrate https://github.com/go-gitea/tea.git --name=gitea/tea

# migrate from local disk
tea --login=try migrate ./tea.git --name=gitea/tea

# migrate from a SSH URL, clone from ssh and then upload from local disk
tea --login=try migrate git@github.com:go-gitea/tea.git --name=gitea/tea
Originally created by @lunny on GitHub (Apr 26, 2019). Original GitHub issue: https://github.com/go-gitea/tea/issues/22 If we can implement a sub command `migrate`, that will be helpful. ``` # migrate from a http URL tea --login=try migrate https://github.com/go-gitea/tea.git --name=gitea/tea # migrate from local disk tea --login=try migrate ./tea.git --name=gitea/tea # migrate from a SSH URL, clone from ssh and then upload from local disk tea --login=try migrate git@github.com:go-gitea/tea.git --name=gitea/tea ```
yindo added the enhancement label 2026-02-16 12:57:47 -05:00
Author
Owner

@noerw commented on GitHub (Apr 26, 2019):

I'm not well informed about the architecture, but afaik the gitea server implements migration logic for all these cases..
If so, the CLI shouldn't need to push from local disk, but trigger the migration on server side for the HTTP/SSH URL case.
This way the local clone can be made optional (with a --clone BooleanFlag?), which might be of interest for large automated migrations.

@noerw commented on GitHub (Apr 26, 2019): I'm not well informed about the architecture, but afaik the gitea server implements migration logic for all these cases.. If so, the CLI shouldn't need to push from local disk, but trigger the migration on server side for the HTTP/SSH URL case. This way the local clone can be made optional (with a `--clone` BooleanFlag?), which might be of interest for large automated migrations.
Author
Owner

@lafriks commented on GitHub (Apr 26, 2019):

@noerw gitea does not implement migration from local path

@lafriks commented on GitHub (Apr 26, 2019): @noerw gitea does not implement migration from local path
Author
Owner

@techknowlogick commented on GitHub (Apr 26, 2019):

@lafriks I think it does, but is disabled by default.

@techknowlogick commented on GitHub (Apr 26, 2019): @lafriks I think it does, but is disabled by default.
Author
Owner

@lafriks commented on GitHub (Apr 26, 2019):

but from server disk but this would be way to migrate from users local disk

@lafriks commented on GitHub (Apr 26, 2019): but from server disk but this would be way to migrate from users local disk
Author
Owner

@lunny commented on GitHub (Apr 26, 2019):

Yes, just like @lafriks said. This in fact will do three steps when migrate from local disk:

  1. create a repo on gitea server
  2. git add remote to that gitea server repo
  3. push to remote server.

The original migration from disk will migrate from gitea server's disk but not guest's.

@lunny commented on GitHub (Apr 26, 2019): Yes, just like @lafriks said. This in fact will do three steps when migrate from local disk: 1. create a repo on gitea server 2. git add remote to that gitea server repo 3. push to remote server. The original migration from disk will migrate from gitea server's disk but not guest's.
Author
Owner

@lunny commented on GitHub (Apr 26, 2019):

This command also could be some part of scripts to batch migrate local git repositories to gitea server.

@lunny commented on GitHub (Apr 26, 2019): This command also could be some part of scripts to batch migrate local git repositories to gitea server.
yindo changed title from Migrate repositories from a HTTP URL, local disk or SSH URL to [GH-ISSUE #22] Migrate repositories from a HTTP URL, local disk or SSH URL 2026-06-05 16:34:07 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/tea#10