Existing code in aws code commit, need to sync that to github
- clone repo to local
- git clone --mirror https://git-codecommit.us-east-2.amazonaws.com/v1/repos/myRepo.git
- go to local dir after clone
- cd myRepo.git
- add remote repo location this is the github location
- git remote add --mirror=fetch secondary git@github.com:company/myRepo.git
- fetch all branches from aws code commit( origin) and push all that to github(secondary)
- git fetch origin
- git push secondary --all
- future changes
git fetch origin
git push --mirror git@github.com:username/repo.git