Git-svn: Difference between revisions

From Freephile Wiki
m formatting
No edit summary
Line 1: Line 1:
If you use <code>git-svn</code> (don't, use [[reposurgeon]]) to convert to git you'll want to be aware of the --prefix option to <code>git init</code>.  From the [https://git-scm.com/docs/git-svn the manual]
If you try to use <code>git-svn</code> to convert to git you'll want to be aware of the --prefix option to <code>git init</code>.  From the [https://git-scm.com/docs/git-svn the manual]


<blockquote>
<blockquote>
Line 8: Line 8:
Before Git v2.0, the default prefix was "" (no prefix). This meant that SVN-tracking refs were put at "refs/remotes/*", which is incompatible with how Git�s own remote-tracking refs are organized. If you still want the old default, you can get it by passing --prefix "" on the command line (--prefix="" may not work if your Perl�s Getopt::Long is < v2.37).
Before Git v2.0, the default prefix was "" (no prefix). This meant that SVN-tracking refs were put at "refs/remotes/*", which is incompatible with how Git�s own remote-tracking refs are organized. If you still want the old default, you can get it by passing --prefix "" on the command line (--prefix="" may not work if your Perl�s Getopt::Long is < v2.37).
</blockquote>
</blockquote>
== Bottom Line ==
In all but the most trivial cases, git-svn is not adequate as a conversion tool. See http://esr.ibiblio.org/?p=6778, and also http://www.catb.org/~esr/reposurgeon/features.html for a run-down of the top contenders (and where they fall short). 
[[Reposurgeon]] is the best conversion tool for migrating from Subversion to Git.

Revision as of 11:46, 29 January 2016