Skip to content

Instantly share code, notes, and snippets.

@barcellos-pedro
Created July 19, 2023 02:00
Show Gist options
  • Save barcellos-pedro/0062066577d3d1c56d2834c9ea3167c9 to your computer and use it in GitHub Desktop.
Save barcellos-pedro/0062066577d3d1c56d2834c9ea3167c9 to your computer and use it in GitHub Desktop.
Clone github repos based on txt file
#!/usr/bin/env bash
echo -e "\n[Cloning repos...]"
user=$1
count=0
while read repo
do
echo "Cloning $repo..."
git clone --quiet $repo
(( count += 1 ))
done < repos.txt
echo -e "\nTotal repos cloned = $count"
echo "[Done]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment