Child pages
  • Migrate to Harvard Enterprise GitHub (
Skip to end of metadata
Go to start of metadata


To migrate a repository from a git based version control (like github, Bitbucket , , etc ) to Harvard Enterprise GitHub

  1. Create a repository in 
  2. Use git commands to move the repository contents. 

Example: Suppose we want to migrate my_test_repo ( from Bitbucket to Harvard Enterprise GitHub. 

Create new repository "my_test_repo" in using the UI or API

   Using the website

   Or with API calls

Note that token and API calls are useful if you want to automate things or move multiple repositories at once.

Migrate the repository

  • Clone the old repository 

  • Remove the old repository remote URL

  • Add the new remote repository URL, 

  • push to the remote repository.

git clone --mirror
cd my_test_repo
git remote remove origin
git remote add origin
git push origin --mirror
  • The "–mirror" option is to map all the branches and tags.

  • You need to setup SSH keys to the push to a repository in

Remove your token

if you created a token above, then delete it

go to : then delete it.


  • No labels