Git/v.Subversion: Difference between revisions

link to Git Lab
No edit summary
 
Line 42: Line 42:
But the real migration is harder than that.
But the real migration is harder than that.
* user migration/mapping <code>svn log --xml | grep author | sort -u | perl -pe 's/.*>(.*?)<.*/$1 = /' > users.txt</code>
* user migration/mapping <code>svn log --xml | grep author | sort -u | perl -pe 's/.*>(.*?)<.*/$1 = /' > users.txt</code>
* <code>git svn clone --stdlayout --no-metadata --authors-file=users.txt file:///path-to/svn-repo tmp-git-repo
* <code>git svn clone --stdlayout --no-metadata --authors-file=users.txt file:///path-to/svn-repo tmp-git-repo</code>
* git checkout -b local_branch remote_branch
* <code>git checkout -b local_branch remote_branch</code>
* migrate tags
* migrate tags