Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cornelk/gitlab2gitea

Migration tool from GitLab to Gitea
https://github.com/cornelk/gitlab2gitea

gitea gitlab go golang

Last synced: about 2 months ago
JSON representation

Migration tool from GitLab to Gitea

Awesome Lists containing this project

README

        

# gitlab2gitea [![Go Report Card](https://goreportcard.com/badge/cornelk/gitlab2gitea)](https://goreportcard.com/report/github.com/cornelk/gitlab2gitea)

A command line tool build with Golang to migrate a [GitLab](https://gitlab.com/) project to [Gitea](https://gitea.io/).

It uses the exposed API of both systems to migrate following data of a project:

* All open milestones
* All labels
* All open issues

It skips creation if an item already exists.

## Installation

```
go install github.com/cornelk/gitlab2gitea@latest
```

Installing the tool from source code needs to have a recent version of [Golang](https://go.dev/) installed.

## Usage

```
./gitlab2gitea --gitlabserver https://gitlab.domain.tld/ --gitlabtoken 12345 \
--giteaserver https://gitea.domain.tld/ --giteatoken 54321 \
--gitlabproject group/project --giteaproject group/project
```

## Options

```
Migrate labels, issues and milestones from GitLab to Gitea.

Usage: gitlab2gitea --gitlabtoken GITLABTOKEN [--gitlabserver GITLABSERVER] --gitlabproject GITLABPROJECT --giteatoken GITEATOKEN --giteaserver GITEASERVER [--giteaproject GITEAPROJECT]

Options:
--gitlabtoken GITLABTOKEN
token for GitLab API access
--gitlabserver GITLABSERVER
GitLab server URL with a trailing slash
--gitlabproject GITLABPROJECT
GitLab project name, use namespace/name
--giteatoken GITEATOKEN
token for Gitea API access
--giteaserver GITEASERVER
Gitea server URL
--giteaproject GITEAPROJECT
Gitea project name, use namespace/name. defaults to GitLab project name
--help, -h display this help and exit
```