Every time I install Ubuntu on a different computer, I need to clone again the same git repositories. This is why I use this bash script.
It clones the list of repositories to a convenient working directory in the home folder. I use the /home/git
folder.
Arguments are lists of git repositories. One repo per line, one file per list. See the example:
git-project-1
git-project-2
git-project-3
...
git-project-n
This way you can execute the script passing one or many files as an argument
bash multiple-git-clone.sh *.list