Clone multiple git repositories when setting up your Ubuntu

less than 1 minute read

This post is to share a bash script I always wanted to write. I have been searching for a while for a simple script for automatically clonning all my git repositories, no matter if they are stored in GitHub or Bitbucket. I have found many interesting approaches but I finally decided to write my own solution.

The script is stored in a Gist and allows me to create several lists of repositories (e.g. grouped by owner, project, platform, etc) and clone all in a single step.

Of course there are many improvements I could use (e.g. error management, ask for pull instead of clone if necessary, etc) but for now it is enough when setting up a new machine.

I hope you like it ;)