Clone & Sync all the Repositories in AWS CodeCommit at Once

If you are using AWS CodeCommit as your primary code repository, you may have wanted to backup all the code on to your network. As you are switching from project to project, it may be helpful to have a current copy all of this code on your machine. I have written a back scrip to accomplish that. It will clone any new repositories from CodeCommit to your machine only new changes from repositories previously cloned.

Make sure to set your AWS CLI environment before running the script. You can read through another article I wrote on that topic. Update the working directory inside the script to your choice by modifying the following line:

     SET WORKING_DIR="H:\My Documents\CodeCommit"

Download Script File(s):

Leave a Reply

Your email address will not be published. Required fields are marked *