简体   繁体   中英

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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