Hi
I want to move from SVN to git. The git repository will obviously be here, but the SVN is still at another server. Obviously, I would like to migrate my data from SVN to git.
How can I do this?
Thanks,
Rainer
posted 2 years, 6 months ago
-
Tom Willemsen · posted 2 years, 6 months ago · View
Have a look at git-svn, perhaps that is like what you’re looking for
partly – I have found http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ which describes this, but, as I amw to git, I don’t know how I get my local repo to bettercodes.
Well I don’t actually have any experience with git-svn, but from what I understand after the git-svn fetch you can treat it as a regular git repository.
You could try something like git remote add bettercodes
and then when you want to push use git push bettercodes
no success guaranteed
OK – t worked.
Just to sum up:
1) I followed http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ to create a local git from the SVN repository — IMPORTANT: it is ”git svn” and not git-svn!
2) git remote add bettercodes https://username:password@git.bettercodes.org/PROJECTNAME/
3) git push bettercodes
That’s it
Thanks,
Rainer
Yes the command usually seems to be git svn, but if you look at the man page they call it git-svn.