mercredi 11 mai 2016

How to push git master branch to trunk of a new SVN repository

I have a Wordpress plugin in a Git repository: http://ift.tt/1sdLF5R

I would like to continue to use git for development. However I have to publish a copy to SVN in order to publish the plugin on Wordpress.org: http://ift.tt/1sdLF5T

I'm looking for the easiest solution possibile. The SVN repository is empty. I cannot use git svn clone because I don't want to create a new git repo.

I would like to simply push the git master branch to SVN trunk. How can I do that?

I've tried adding the following code to .git/config

[svn-remote "svn"]  
    url = http://ift.tt/1sdLCHc
    fetch = pushpad-web-push-notifications/trunk:refs/remotes/trunk
    branches = pushpad-web-push-notifications/branches/*:refs/remotes/*
    tags = pushpad-web-push-notifications/tags/*:refs/remotes/tags/*

However when I run git svn fetch svn git starts searching millions of revisions which refer to all the plugins hosted by Wordpress.org. So I have to kill that command. Also git branch -a doesn't show any new branch for svn. So I don't know how to proceed.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire