3

Is there a way I can move a project that is on BitBucket to AWS CodeCommit and keep all the commit history?

Tyler Hilbert
  • 2,107
  • 7
  • 35
  • 55

1 Answers1

8

If you push your code to AWS, it should have the full commit history. First make the repository in the AWS console, then

# On your local machine
cd path/to/git/repo
git remote add aws git@git-codecommit.us-east-1.amazonaws.com/v1/repos/your-repo-name

git push -u aws master

When you push a branch to another repository, the full commit history goes along with it. Anyone who checks the code out of the AWS repository will be able to see all commits.

declan
  • 5,605
  • 3
  • 39
  • 43