Member-only story

How to Migrate CodeCommit to GitHub — and Keep your Amplify Pipeline

Manu Magalhães
5 min readOct 13, 2021

--

Available for free in English & Portuguese at my personal website.

This tutorial includes guidance for three different scenarios in your GitHub administration:
1) when your repo is in your personal account;
2) when your app is under a GitHub Org and admins grant you the permissions you need; and
3) when your repo is under a GitHub Org and admins do NOT grant you the permissions you need.

Pre-requisites: Relevant access and permissions for CodeCommit and Amplify. You also need a working GitHub account.

Migrating Your Repo

  1. Open your CLI and cd into your existing CodeCommit local folder.

2. Run git remote get-url origin to get the external clone URL for the project you plan to migrate to GitHub.

3. Create a temporary folder by running mkdir ../temp-migration and open it in the CLI by running cd ../temp-migration.

4. Run git clone --bare followed by the clone URL you got in step 2. An example would be git clone --bare https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/name-of-your-codecommit-directory .

Educational note: The flag-- bare is a way to fully clone…

--

--

Manu Magalhães
Manu Magalhães

Responses (1)