mirror of
https://github.com/go-gitea/tea.git
synced 2026-07-01 21:03:59 -04:00
[GH-ISSUE #22] Migrate repositories from a HTTP URL, local disk or SSH URL #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.@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
--cloneBooleanFlag?), which might be of interest for large automated migrations.@lafriks commented on GitHub (Apr 26, 2019):
@noerw gitea does not implement migration from local path
@techknowlogick commented on GitHub (Apr 26, 2019):
@lafriks I think it does, but is disabled by default.
@lafriks commented on GitHub (Apr 26, 2019):
but from server disk but this would be way to migrate from users local disk
@lunny commented on GitHub (Apr 26, 2019):
Yes, just like @lafriks said. This in fact will do three steps when migrate from local disk:
The original migration from disk will migrate from gitea server's disk but not guest's.
@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.
Migrate repositories from a HTTP URL, local disk or SSH URLto [GH-ISSUE #22] Migrate repositories from a HTTP URL, local disk or SSH URL