Convert all SVN repos into git
Here's a script to batch-convert a set of subversion repositories into a set of Git ones:
Here's a script to batch-convert a set of subversion repositories into a set of Git ones:
URL=file:///c/Users/laur/dev/toBackup/svn/root
for i in `svn ls "${URL}"`; do
rn=${i%?}
echo "${rn}"
git svn clone --stdlayout "${URL}/$rn/" "${rn}.git"
done
Note: This assumes the standard subversion layout with trunk...