Created
October 31, 2012 15:01
-
-
Save corny/3987518 to your computer and use it in GitHub Desktop.
migration of jwebsocket to github
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
# clone repo | |
svn2git http://jwebsocket.googlecode.com/svn | |
# remove unwanted files | |
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch \ | |
jWebSocketDownloads \ | |
jWebSocketExecutables \ | |
jWebSocketRTE \ | |
jWebSocketClient/web/javadocs \ | |
jWebSocketDeployment \ | |
jWebSocketServer/activemq-data \ | |
jWebSocketAppServer/target \ | |
**/target/classes \ | |
libs/J2SE \ | |
activemq-data" -- --all | |
# remove the temporary history git-filter-branch otherwise leaves behind for a long time | |
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune | |
# push repo to github | |
git remote add origin [email protected]:corny/jwebsocket.git | |
git push -u origin --all --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment