Skip to content

Instantly share code, notes, and snippets.

@hudon
Created May 27, 2015 18:48
Show Gist options
  • Save hudon/0df856ce057dbebedfb2 to your computer and use it in GitHub Desktop.
Save hudon/0df856ce057dbebedfb2 to your computer and use it in GitHub Desktop.
clone a list of gists
# /bin
#gists.txt
#https://github.com/gist/hudon/0ccd3601425b25b5e559
#https://github.com/gist/hudon/89254003f8d5491a2e1d
# ...
#
while read -r in
do
url=${in/gist\/andy/gist}.git
url=${url/https:\/\/github.cbhq.net/[email protected]:}
git clone $url
done < gists.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment