すっかり放置しているLog4Twitterをちょっといじろうと思ったらGitHubに置いていませんでした。以前自宅サーバのsvnリポジトリに置いていたものの、もはやsvnサーバがない状態。
そこでsvnserveで臨時svnサーバを立てて、git-svnと組み合わせることでGitHubに移行したのでメモ。
1. svnserveを立ち上げる
$ svnserve -d –foreground -r /Users/yusukey/repos/ –listen-port 8080
2. git-svnで吸い出す
$ git svn clone -s svn://localhost:8080/log4twitter
Initialized empty Git repository in /private/tmp/log4twitter/.git/
Using higher level of URL: svn://localhost:8080/log4twitter => svn://localhost:8080
r27 = 59674090c6680982783d119bcbdaf7750769540e (refs/remotes/trunk)
A LICENSE.txt
A logback.xml
A config/logback.xml
A config/log4j.xml
A lib/commons-codec-1.3.jar
A lib/slf4j-api-1.4.0.jar
A lib/jdom.jar
A lib/junit.jar
A lib/logback-classic-0.9.6.jar
A lib/twitter4j-1.0.jar
A lib/log4j-1.2.14.jar
A lib/logback-core-0.9.6.jar
A src/test/java/log4twitter/log4j/TestLog4jTwitterAppender.java
A src/test/java/log4twitter/logback/TestLogbackTwitterAppender.java
A src/main/java/META-INF/LICENSE.txt
A src/main/java/META-INF/MANIFEST.MF
A src/main/java/log4twitter/log4j/TwitterAppender.java
A src/main/java/log4twitter/logback/TwitterAppender.java
A src/main/java/log4twitter/TwitterWrapper.java
A build.properties
A pom.xml
A build.xml
A log4j.xml
r55 = 2dac12070129a6bb7e898a151f07bee19ad0fc7e (refs/remotes/trunk)
Checked out HEAD:
svn://localhost:8080/log4twitter/trunk r55
$ git branch
* master
Initialized empty Git repository in /private/tmp/log4twitter/.git/
Using higher level of URL: svn://localhost:8080/log4twitter => svn://localhost:8080
r27 = 59674090c6680982783d119bcbdaf7750769540e (refs/remotes/trunk)
A LICENSE.txt
A logback.xml
A config/logback.xml
A config/log4j.xml
A lib/commons-codec-1.3.jar
A lib/slf4j-api-1.4.0.jar
A lib/jdom.jar
A lib/junit.jar
A lib/logback-classic-0.9.6.jar
A lib/twitter4j-1.0.jar
A lib/log4j-1.2.14.jar
A lib/logback-core-0.9.6.jar
A src/test/java/log4twitter/log4j/TestLog4jTwitterAppender.java
A src/test/java/log4twitter/logback/TestLogbackTwitterAppender.java
A src/main/java/META-INF/LICENSE.txt
A src/main/java/META-INF/MANIFEST.MF
A src/main/java/log4twitter/log4j/TwitterAppender.java
A src/main/java/log4twitter/logback/TwitterAppender.java
A src/main/java/log4twitter/TwitterWrapper.java
A build.properties
A pom.xml
A build.xml
A log4j.xml
r55 = 2dac12070129a6bb7e898a151f07bee19ad0fc7e (refs/remotes/trunk)
Checked out HEAD:
svn://localhost:8080/log4twitter/trunk r55
$ git branch
* master
3. GitHubにpushする
$ git remote add origin git@github.com:yusuke/log4twitter.git
$ git push origin master
Counting objects: 40, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (40/40), 960.63 KiB, done.
Total 40 (delta 5), reused 0 (delta 0)
To git@github.com:yusuke/log4twitter.git
* [new branch] master -> master
$ git push origin master
Counting objects: 40, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (40/40), 960.63 KiB, done.
Total 40 (delta 5), reused 0 (delta 0)
To git@github.com:yusuke/log4twitter.git
* [new branch] master -> master
終わり。
・yusuke/log4twitter – GitHub