Created
July 19, 2023 02:00
-
-
Save barcellos-pedro/0062066577d3d1c56d2834c9ea3167c9 to your computer and use it in GitHub Desktop.
Clone github repos based on txt file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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