Using plugins.svn.wordpress.org with Git

So I got SVN access to plugins.svn.wordpress.org, but I hate SVN. Let's just use Git instead of SVN, especially when I already have my plugin as Git on github.com :)

git svn clone -s -r283636 https://plugins.svn.wordpress.org/statusnet-widget/

git remote add -f github git://github.com/evgeni/wp-statusnet-widget.git

git merge github/master

git svn dcommit

(note the -r283636 - it's very important, if you ommit it, git svn will fetch 280k revisions which takes ages, if you put it to something AFTER your repo was created, the log will be b0rked*)

Done! Now you can work as usual, push to github and commit to svn via dcommit :)

PS: Dear WordPress.org Team, you have working SSL, why do you still have http-links in your mails?

*: You can find the revision you need by looking at http://plugins.trac.wordpress.org/log/statusnet-widget/ - you need the one when plugin-master created your repo :)

Thanks nplus for reminding me about this on XMPP :)

Comments