I have a project developing using GIT. I need to make a SVN mirror only repository for users that didn't like GIT. I googled some instructions about it but all of them failed. Part of them written for Linux - I have Windows. Part of them suggest to create empty repository and then syncing it with main GIT repository - it's not really what I want. Part of them simple didn't work failing on different stages with cryptic messages. So I decided to ask here. I digged into git-svn command description in desperate attempt to make this thing work by myself. I'm failed too. Github svn export too unstable to rely on it. Now I'm asking you to help.
So, here the task.
- I have local GIT repository with many linked remotes (my own repository, sf.net, github etc).
- I would like to make from my local repository an SVN-aware GIT repository to mirror my development.
- SVN repository would be a read-only mirror. It would be nice if SVN retain history of changes but if it's impossible - I didn't bother.
- Only one branch should be mirrored to SVN. It could be master branch or any other dedicated to mirroring - didn't bother ether.
- SVN would reside on SourceForge.
Is it possible to make this thing really work?
git svn init
orgit svn clone
are intended to connect to an existing SVN repo, so I'd suggest the following.svn git clone
git svn dcommit
of the branch you want to share with the SVN repoAnother completely different approach is to use git and SVN on the same work files. You only have to make sure to ignore the .git and .svn dirs respectively. Then you use git commands for git and SVN commands for SVN.
Of course, with this approach you have to sync every commit manually you want to have in both repos, but if you don't care to have all commits in both repos this might be sufficient.