A Bitbucket Cloud to GitHub migration starts with a scope decision, not a clone command. Moving the repository does not move the whole development workflow. Your team still needs a place for open reviews, working builds, deployment credentials and access rules. This guide covers Bitbucket Cloud on Bitbucket.org to GitHub.com. It separates what the documented tools move from the operational work we recommend around them.
Start with the right Bitbucket migration route
GitHub lists Git CLI and GitHub Importer for moving Bitbucket Cloud source code and history to GitHub.com. Bitbucket Server and Bitbucket Data Center have a separate GitHub Enterprise Importer route that includes source, history and metadata. Those product names are not interchangeable. Do not promise a Cloud team the metadata coverage described for Server or Data Center.
GitHub Importer works with Git repositories and is available on GitHub.com. A private repository can be imported with authentication if it is reachable over the public internet. A repository available only on a private network cannot be reached by the importer. Confirm the destination too, rather than assuming every GitHub hosting option supports the same route.
Separate Git data from collaboration data
Write down what must survive before choosing a tool. A successful code import is evidence that code arrived, not that the team can stop using Bitbucket. Use a separate acceptance list for each part of the move.
| Area | Documented scope or recommended work | Acceptance check |
|---|---|---|
| Source and commits | GitHub Importer or Git CLI | Compare expected branch and tag tips |
| Git LFS objects | Separate transfer from Git history | Retrieve actual files from a fresh clone |
| Issues and pull requests | Not imported by GitHub Importer | Agree an archive or separate handling plan |
| CI and deployments | Recommended rebuild and testing work | Run builds and a controlled deployment |
| Access and review rules | Recommended destination configuration | Test allowed and denied actions |
For open pull requests, decide whether to finish the review in Bitbucket or recreate the work in GitHub with a reference to its original discussion. If historical conversations must remain searchable, agree how they will be retained. Treat any separate metadata transfer as its own project with tested coverage, not an implied feature of the code importer.
Inventory the repositories and their dependencies
We recommend recording the repository owner, destination organization, visibility, default branch, active branches, tags and LFS use. Add submodules, package consumers and systems that clone the repository. Assign a person who can verify each repository after the move.
Inventory automation separately. Include Bitbucket Pipelines configuration, variables, deployment credentials, webhooks, build agents and external status checks. A tracked configuration file may arrive with the source, but that does not establish that the destination can execute the workflow. Our broader code migration approach treats repository transfer and application delivery as related but distinct checks.
Choose Importer or a controlled Git transfer
Use GitHub Importer for a new repository
GitHub Importer creates a new repository. Enter the Bitbucket repository URL, provide authentication for a private source, then choose the owner, repository name and visibility. The supplied credentials are used to perform a Git clone of the source. Review the chosen visibility before starting, especially for private code.
The importer moves source code and commit history. It does not import associated issues or pull requests, and it does not transfer LFS objects. If you already have a destination repository you need to use, GitHub points to adding the local repository through Git instead of this new repository flow.
Use Git CLI when you need an explicit transfer process
GitHub documents creating a bare clone and pushing it to the destination with git push --mirror. Create the destination repository first. We recommend an unused destination for this process and a review of its contents before each mirror push. Treat mirroring as a repository transfer operation, not a way to merge two independent development histories.
A mirrored clone includes remote branches and tags. GitHub also warns that its local references are overwritten on each fetch. Keep the transfer clone separate from daily development and do not put destination-only work into it. Record which source and destination each operation uses.
Move Git LFS objects explicitly
Git LFS needs its own step. GitHub Importer does not move LFS objects, so seeing the repository on GitHub is not proof that its large files are available there.
For the documented Git transfer workflow, create the bare clone, enter it and run git lfs fetch --all to retrieve the source LFS objects. Mirror-push the Git repository to GitHub, then run git lfs push --all with the destination URL. Keep the Git push and LFS push as separate items in the migration checklist.
Rebuild the workflow before inviting developers
We recommend recreating CI and deployment behavior deliberately. If you are adopting GitHub Actions, translate the required build and release steps rather than assuming Bitbucket Pipelines configuration will run there. Test dependencies, caches, artifacts and status reporting against the team's real release path.
Set up secrets through the destination's approved process. Avoid putting credentials into committed configuration or migration notes. Review service accounts and external integrations, then test their permissions. Configure team access, required checks and review rules as separate work. Ask a maintainer and a normal contributor to test their expected actions, including actions they should not be allowed to perform.
Commit attribution is another separate check. GitHub uses the email in the commit header to link a commit to a user. Contributors should add the addresses used in their commits to their GitHub accounts. Correct attribution does not grant access to the repository.
Rehearse acceptance, freeze and rollback
We recommend a trial transfer before the production cutover. Compare expected branches, tags and commit identifiers. Build an active branch and a release tag from fresh destination clones. Check LFS files, submodule targets and any systems that pull source. Have repository owners sign off on the results.
- Announce which repository is authoritative and when source writes should pause.
- Record the final accepted source state and complete the planned Git and LFS transfer.
- Repeat the acceptance checks and test destination automation.
- Update developer remotes, integration targets and team instructions.
- Open destination writes only after the owner accepts the result.
Define rollback before this sequence. If acceptance fails before destination writes begin, the team can choose to keep working in Bitbucket. If developers have already committed on GitHub, first reconcile that new work. Do not blindly mirror an older source over it. Retain source access for the agreed reference period, with a clear policy preventing parallel writes. These are operating recommendations, not importer guarantees.
How Remqa helps with Bitbucket Cloud migrations
Remqa can help scope the repository transfer, plan separate handling for collaboration history and test the build and access changes around it. Our migration services cover discovery, rehearsals and acceptance checks. If you are considering the move, walk an engineer through your Bitbucket Cloud setup and the GitHub workflow you want to run.