Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

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

...

Create new repository "aws_devops" in code.harvard.edu using the UI or API

   Using the website

...

Note

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

...

  • Clone the old repository 

  • Remove the old repository remote URL

  • Add the new remote repository URL, 

  • push to the remote repository.

Code Block
languagebash
themeRDark
git clone --mirror git@bitbucket.org:harvardseas_sysops/aws_devops.git
cd aws_devops
git remote remove origin
git remote add origin git@code.harvard.edu:SEAS/aws_devops.git
git push origin --mirror
Note
  • The "–mirror" option is to map all the branches and tags.

  • You need to setup SSH keys to the push to a repository in code.harvard.edu

Remove your token

if you created a token above, then delete it

go to : https://code.harvard.edu/settings/tokens then delete it.

...