Created
July 18, 2012 00:24
-
-
Save cliffano/3133171 to your computer and use it in GitHub Desktop.
svn2git loop in bash
This file contains hidden or 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
#! /bin/bash | |
mkdir -p workspace | |
cd workspace | |
for PROJ in 'app1' 'app2' 'app3' | |
do | |
mkdir $PROJ | |
cd $PROJ | |
# for SVN repo with structure app/trunk, app/branches, app/tags | |
# add --trunk $PROJ/trunk --branches $PROJ/branches --tags $PROJ/tags | |
svn2git svn://svnhost/path/ --verbose --authors ~/authors | |
git remote add origin user@githost:path/$PROJ.git | |
git push origin master | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment