Is there a way I can move a project that is on BitBucket to AWS CodeCommit and keep all the commit history?
Asked
Active
Viewed 3,059 times
3
-
2You can push any git repo to any git host and it will keep the history of the repo. – SLaks Jun 27 '16 at 18:42
-
Do you have a copy of the code on your local machine? – declan Jun 27 '16 at 21:42
-
@declan yes and full access to the repository – Tyler Hilbert Jun 28 '16 at 01:15
-
Does the answer below work for you? Looks like you don't have enough rep to comment directly on the answer, but you can leave a comment here if there's anything about that that doesn't make sense. – declan Jun 28 '16 at 05:46
-
@declan yes it is working , thanks for the help! – Tyler Hilbert Jul 01 '16 at 19:36
1 Answers
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