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