cd ~/_trash while read r; do echo $r aws codecommit create-repository --repository-name $r --region us-east-1 git clone --mirror git@github.com:$GITHUB_ORG/$r.git cd $r.git git push ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/$r --all git push ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/$r --tags sleep 10 aws codecommit update-default-branch --repository-name $r --default-branch-name master --region us-east-1 cd .. done < ~/dev/utility-scripts/aws/codecommit/repos.txt