Skip to content

Bash script for migrating git repos between GitHub and Bitbucket.

Notifications You must be signed in to change notification settings

bbiHQ/github-bitbucket-migrator-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

github-bitbucket-migrator-bash

Allow git repos to be batch migrated between GitHub and Bitbucket.

Assumption

  1. The repo owner account shares the same name on both GitHub and Bitbucket.
  2. Repo of the same name exists in both GitHub and Bitbucket under the same repo owner account (i.e. the repo slug is the same), the destination repo will receive a force push so it will be a mirror copy of the source repo.

Usage: Bitbucket to GitHub

./bb2gh.sh [REPO_SLUG_1] [REPO_SLUG_2] [REPO_SLUG_3]...

Usage: GitHub to Bitbucket

./gh2bb.sh [REPO_SLUG_1] [REPO_SLUG_2] [REPO_SLUG_3]...

About

Bash script for migrating git repos between GitHub and Bitbucket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages