Cloning the Subversion repository

To begin the migration, we have to clone the Subversion repository locally, as we did earlier; I again recommend adding the --stdlayout option, to preserve branches and tags, and then to adding the -A option to let Git convert commit authors while cloning:

$ git svn clone <repo-url> --stdlayout --prefix svn/ -A authors.txt 

In case the Subversion repository has trunk, branches, and tags located in other paths (so not a standard layout), Git provides you with a way to specify them with the --trunk, --branches and --tags options:

$ git svn clone <repo-url> --trunk=<trunk-folder> --branches=<branches-folder> --tags=<tags-folder>

When you fire the clone command, remember that this operation can be time consuming; in a repository with a thousand commits, it is not unusual to wait for one or two quarters of an hour.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset