Skip to content

Instantly share code, notes, and snippets.

@alexdiliberto
Created September 5, 2014 16:56
Show Gist options
  • Select an option

  • Save alexdiliberto/29e72bea6a434bea68c7 to your computer and use it in GitHub Desktop.

Select an option

Save alexdiliberto/29e72bea6a434bea68c7 to your computer and use it in GitHub Desktop.
Copy existing Git reposity to SVN
//Simply make a temporary directory as a SVN sandbox
mkdir temp; cd temp;
//Checkout the latest Jefferson SVN
svn co <svn-url> .
//Wipe the current directory to a clean slate
svn delete *
//Manually copy all the files to the current SVN directory
cp -R ~/Repos/<repo>/<name>/<project>/ .
//Delete unnecessary files (if needed)
rm -rf build/ tmp/ node_modules/
//Tell SVN about the new files
svn add *
//This will show you all the files you added
svn status
//Now commit all the updates to SVN and type a meaningful commit message
svn commit
//Thats it. You're done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment