Repository migration to CodeCommit
There are several public and private Git repository providers, including GitHub, Bitbucket, and GitLab, but AWS CodeCommit provides a lot of additional benefits as discussed earlier in this chapter. Migrating an existing Git-based repository to AWS CodeCommit is really easy, as we’ll now demonstrate:
- We have a sample GitHub repository hosted at https://github.com/teach-me-more/sample-github-repo.git. In order to migrate this repository to AWS CodeCommit, we first need to clone the existing GitHub repository to our local workstation using the
git clone
command and navigate to the cloned directory:
Figure 5.50 – Sample GitHub repository cloning
- As the next step, we need to create a new CodeCommit repository using the steps provided earlier in this chapter. We are using the same name as our GitHub repository:
Figure 5.51 – CodeCommit create example migration...