Created
September 5, 2014 16:56
-
-
Save alexdiliberto/29e72bea6a434bea68c7 to your computer and use it in GitHub Desktop.
Copy existing Git reposity to SVN
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
| //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