简体   繁体   English

将git项目从BitBucket移至AWS CodeCommit

[英]Move git project from BitBucket to AWS CodeCommit

有什么方法可以将BitBucket上的项目移动到AWS CodeCommit并保留所有提交历史记录?

If you push your code to AWS, it should have the full commit history. 如果将代码推送到AWS,则它应具有完整的提交历史记录。 First make the repository in the AWS console, then 首先在AWS控制台中创建存储库,然后

# 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. 从AWS存储库中检出代码的任何人都可以查看所有提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM