Skip to content

A command line tool build with Golang to migrate a Bitbucket Server (Stash) Project to Gitea.

License

Notifications You must be signed in to change notification settings

appleboy/BitbucketServer2Gitea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitbucketServer2Gitea

A command line tool build with Golang to migrate a Bitbucket Server (Data Center) Project to Gitea. See the V1 REST API.

Requirements

The following software is required to run this tool:

  • Gitea version: 1.21.3
  • Bitbucket Server version: 8.9.7

Initial Setup

Setup the Gitea and Bitbucket config

bitbucketServer2Gitea config set bitbucket.server https://stash.example.com
bitbucketServer2Gitea config set bitbucket.username admin
bitbucketServer2Gitea config set bitbucket.token xxxxxxxxxxxxxx
bitbucketServer2Gitea config set gitea.server https://gitea.example.com
bitbucketServer2Gitea config set gitea.token xxxxxxxxxxxxxx

Migration Single Repository

bitbucketServer2Gitea migrate --project-key AIA --repo-slug test \
  --target-owner admin --target-repo test