Migrate repositories from a HTTP URL, local disk or SSH URL #22
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#22
Loading…
Reference in New Issue
Block a user
No description provided.
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?
Author: @lunny
If we can implement a sub command
migrate
, that will be helpful.Author: @noerw
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: @lafriks
@noerw gitea does not implement migration from local path
Author: @techknowlogick
@lafriks I think it does, but is disabled by default.
Author: @lafriks
but from server disk but this would be way to migrate from users local disk
Author: @lunny
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.
Author: @lunny
This command also could be some part of scripts to batch migrate local git repositories to gitea server.
I'll look at it ... EDIT: wont have time now :(