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

[...] Evgeni Golov on using plugins.svn.wordpress.org with Git [...]

thenbrent wrote on 2010-10-24 17:27:

Thanks for publishing. It’s nice to be able to use git instead of SVN.

I dream of a github for wp.org extend. The WP community would be much better off it was easy to fork/fix/push the plugins of other’s when you find a bug or just want to add a feature.

Send your comments to evgeni+blogcomments@golov.de and I will publish them here (if you want).