> For the complete documentation index, see [llms.txt](https://n8-group.gitbook.io/bb2gh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n8-group.gitbook.io/bb2gh/getting-started/readme.md). Agents can also search and read this documentation through its [MCP server](https://n8-group.gitbook.io/bb2gh/~gitbook/mcp).

# Introduction

**Bitbucket to GitHub migration tool** — Migrate repositories with full metadata preservation including Pull Requests, comments, user attribution, and secrets.

* **Get Started in 5 Minutes**

  Install bb2gh and run your first migration with a simple four-step workflow.

  [Getting started](https://n8-group.gitbook.io/bb2gh/getting-started/installation.md)
* **Full Git History**

  Preserve complete Git history including branches, tags, and all commits with proper attribution.

  [Learn more](https://n8-group.gitbook.io/bb2gh/guides/guides.md)
* **PR & Review Preservation**

  Migrate Pull Requests with all comments, reviews, and approval history intact.

  [PR Migration](https://n8-group.gitbook.io/bb2gh/guides/pr-migration.md)
* **Enterprise Ready**

  Support for GitHub Enterprise Cloud, Data Residency, and Enterprise Server deployments.

  [Enterprise](https://n8-group.gitbook.io/bb2gh/guides/enterprise.md)

## Why bb2gh?

Moving from Bitbucket to GitHub is more than just pushing code. You need to preserve:

* **Pull Request history** — All PRs, comments, and reviews
* **User attribution** — Map Bitbucket users to GitHub accounts
* **Branch protections** — Convert Bitbucket restrictions to GitHub rules
* **Secrets** — Migrate pipeline variables securely
* **LFS objects** — Handle large files correctly

bb2gh handles all of this with a **Terraform-inspired workflow**:

```bash
# 1. Discover what you have
bb2gh discover --workspace my-company --output inventory.json

# 2. Plan the migration (review before executing)
bb2gh plan --inventory inventory.json --target-org my-gh-org --output plan.json

# 3. Execute with confidence
bb2gh migrate --plan plan.json

# 4. Verify everything worked
bb2gh validate --migration mig_xxx
```

## Quick Links

* [Installation Guide](https://n8-group.gitbook.io/bb2gh/getting-started/installation.md) — Get bb2gh installed on your system
* [Command Reference](https://n8-group.gitbook.io/bb2gh/commands/commands.md) — Detailed documentation for all commands
* [User Mapping Guide](https://n8-group.gitbook.io/bb2gh/guides/user-mapping.md) — Configure user attribution
* [bb2gh.dev](https://bb2gh.dev) — Landing page & overview

## Contributing

Want to contribute? See the [Contributing Guide](https://github.com/n8group-oss/bb2gh/blob/main/CONTRIBUTING.md) on GitHub.

## Licensing

bb2gh requires a free license to operate. Register in seconds — no credit card required:

```bash
bb2gh license register --email you@company.com
```

See [Licensing](https://n8-group.gitbook.io/bb2gh/getting-started/licensing.md) for setup details and [Plans & Features](https://n8-group.gitbook.io/bb2gh/guides/plans-and-features.md) for plan comparison.

## Source License

bb2gh is licensed under the [Business Source License 1.1](https://github.com/n8group-oss/bb2gh/blob/main/LICENSE/README.md). You can use it freely for any purpose except offering a competing migration service. After 4 years from each release, that version converts to Apache 2.0.
