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 2mo 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 1mo ago

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

33

—

LowBetter than 75% of packages

Maintenance56

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

920d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6109ecdd6607e0eec043d8adf1951cf700c0b030ab2fe3fff4525d961b6a50b7?d=identicon)[Jascha030](/maintainers/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

[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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