Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move git project from BitBucket to AWS CodeCommit

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


1 Answers

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 [email protected]/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.

like image 110
declan Avatar answered Jun 02 '26 15:06

declan