Skip to content

Instantly share code, notes, and snippets.

@hudon
Created May 27, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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/git@github.cbhq.net:}
git clone $url
done < gists.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment