Dockerimage to move svn trunk to git repo with history and propper authors
- need docker
- need git to migrate to a server (tested with gitlab, should work with any)
- create a test repo
- run docker run -it pwilms/git-svn migrate
- the script guides you through the following steps:
-
enter new git repo url (ssh)
-
you have to copy the public ssh key to your repo as deployment key with write access
-
script will check the access
-
enter old svn url to the trunk of the project 4.1 you may have to enter valid credentials for checkout the svn
-
the script will export all users of svn in a text file and opens a vim you need to format the names: exported:
doe
formatted:
doe = john doe <[email protected]>
-
close with
:wq
๐ -
old repo is checkout with git svn and matches the users ๐
-
a clean copy will be checkout from local migration repo
-
repo is pushed automatically against your new git repo
-
DONE! ๐๐๐๐
- clean migrate script
- sanity checks