Skip to content

Instantly share code, notes, and snippets.

@corny
Created October 31, 2012 15:01
Show Gist options
  • Save corny/3987518 to your computer and use it in GitHub Desktop.
Save corny/3987518 to your computer and use it in GitHub Desktop.
migration of jwebsocket to github
# 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