PHPackages                             jascha030/bb2gh - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. jascha030/bb2gh

ActiveLibrary[Database &amp; ORM](/categories/database)

jascha030/bb2gh
===============

CLI tool to help me quickly migrate projects from bitbucket to github.

1.0.0(2y ago)06[1 PRs](https://github.com/jascha030/bb2gh/pulls)PHPPHP ~8.1||~8.2

Since Nov 6Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/jascha030/bb2gh)[ Packagist](https://packagist.org/packages/jascha030/bb2gh)[ Docs](https://github.com/jascha030)[ RSS](/packages/jascha030-bb2gh/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (7)Versions (4)Used By (0)

BitBucket to Github Migration CLI
=================================

[](#bitbucket-to-github-migration-cli)

THis package was created for personal use and is still under development and prone to breaking changes.

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

```
composer global require jascha030/bb2gh
```

`mv` - Move a Repository from Bitbucket to Github
-------------------------------------------------

[](#mv---move-a-repository-from-bitbucket-to-github)

A Symfony Console command to move a repository from Bitbucket to Github.

### Usage

[](#usage)

```
bb2gh mv [options] [directory]
```

#### Arguments

[](#arguments)

- directory (optional): The directory of the repository. Defaults to the current working directory.

#### Options

[](#options)

- `--organization`, `-o` The organization name.
- `--code-owner`, `-c` The owner of the repository.

#### Description

[](#description)

This command moves a repository from Bitbucket to Github It performs the following steps:

1. It removes the origin remote from the local repository.
2. It creates a new **Github** repository with the same name and description as the local repository.
3. If the `--code-owner` option is provided, it creates a CODEOWNERS file in the `.github` directory of the repository with the specified owner.

#### Example

[](#example)

```
bb2gh  mv --organization=myorg --code-owner=myowner /path/to/repository
```

This example moves the repository located at `/path/to/repository` to Github under the organization myorg and assigns myowner as the code owner.

> Note: Ensure that you have gh (Github CLI) installed and available in your system's PATH.

> Note: This documentation assumes that you have Symfony Console set up in your project and the required dependencies are correctly installed.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance52

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

970d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25476438?v=4)[Jascha van Aalst](/maintainers/Jascha030)[@jascha030](https://github.com/jascha030)

---

Top Contributors

[![jascha030](https://avatars.githubusercontent.com/u/25476438?v=4)](https://github.com/jascha030 "jascha030 (42 commits)")

---

Tags

phpclimigrationbitbucketgithubghgit

### Embed Badge

![Health badge](/badges/jascha030-bb2gh/health.svg)

```
[![Health](https://phpackages.com/badges/jascha030-bb2gh/health.svg)](https://phpackages.com/packages/jascha030-bb2gh)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
