Search code examples
githubforkbranchaws-codecommit

Fork a GitHub repo into AWS CodeCommit


I'm trying to migrate a code repo from GitHub to AWS Code Commit. I need to transfer over all the active branches, which is why I want to do a fork instead of a clone. Is there a way to do this?


Solution

  • Figured it out. Here is the AWS documentation for how to do it.

    The git clone --mirror and git push --all commands will move all of the branches.