Skip to content

Instantly share code, notes, and snippets.

@timvw
Created April 23, 2014 09:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save timvw/11208834 to your computer and use it in GitHub Desktop.
Transfer repositories
# write all remote fetch locations into repositories.txt
find /c/src -type d -mindepth 1 -maxdepth 1 -exec git --work-tree={} --git-dir={}/.git remote -v \; | grep fetch | awk '{print $2}' > repositories.txt
# clone each repository
cat repositories.txt | xargs -l1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment