Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cornelk/gitlab2gitea
- Owner: cornelk
- License: mit
- Created: 2020-02-05T11:43:48.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T20:26:07.000Z (5 months ago)
- Last Synced: 2024-10-16T12:26:27.567Z (about 2 months ago)
- Topics: gitea, gitlab, go, golang
- Language: Go
- Homepage:
- Size: 142 KB
- Stars: 25
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gitea - gitlab2gitea - A command line tool build with Golang to migrate a GitLab project to Gitea. (Migration / Web Hosting)
- awesome-gitea - gitlab2gitea - A command line tool build with Golang to migrate a GitLab project to Gitea. (Migration / Panel)
- awesome-gitea - gitlab2gitea - A command line tool build with Golang to migrate a GitLab project to Gitea. (Migration / Web Hosting)
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 issuesIt 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
```