How to migrate GIT repository from bitbucket to AWS CodeCommit
Steps:
Get code from bitbucket:
git clone --bare https://<username>@bitbucket.org/<userdir>/<project>.git
cd <project>.git
git push --mirror ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/<project>
Good solution.
I use it in the same manner:
git clone –bare https://github.com/SNProject/backend.git
cd backend.git
git push –mirror https://github.com/SNProject/new-backend.git
Thanks.