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 :)


[...] Evgeni Golov on using plugins.svn.wordpress.org with Git [...]
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.
[...] are a few tutorials floating around the web which help we laymen understand how to make Git [...]
[...] are a few tutorials floating around the web which help we laymen understand how to make Git [...]
[...] vorgestellt hat, und an die folgenden Links, die mir praktischerweise weitergeholfen haben: “Using plugins.svn.wordpress.org with Git” und “git und [...]
When I run `git merge github/master`, I get the following error: “fatal: github/master – not something we can merge”
I’ve been using SVN for years, but I’m brand new to git and I’m pretty sure I didn’t do something correct. Any helpful hints?
does github have a master branch? did you pass -f to `git remote add` to auto-fetch it? did the fetch suceed?