Transfer repositories
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
# 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